Project

General

Profile

Actions

Bug #4101

closed

Memory leak in the rtlsdr_open routine of librtlsdr

Added by perceval62 over 4 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
07/11/2019
Due date:
% Done:

100%

Spec Reference:

Description

If the libusb_claim_interface() call fails in rtlsdr_open(), the Dev->DevH pointer is never freed. Causing a memory leak if someone ever uses the rtlsdr_open() routine twice in a row.

Check this pull request on github for more information about the fix.

https://github.com/steve-m/librtlsdr/pull/50

Actions #1

Updated by perceval62 over 4 years ago

Edit 1:

To replicate, just call rtlsdr_open() twice with the same usb index.
Claim error is handled but memory is never freed.

Actions #2

Updated by laforge about 2 years ago

  • Status changed from New to Resolved

has been fixed in upstream according to github PR

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)