Project

General

Profile

Bug #4101

Memory leak in the rtlsdr_open routine of librtlsdr

Added by perceval62 about 1 month ago. Updated about 1 month ago.

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

100%


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

History

#1 Updated by perceval62 about 1 month ago

Edit 1:

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

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)