From be3a3b73a00e9d418cb52706febb85f61882161f Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 25 Oct 2015 10:34:30 +0000 Subject: hw/sdr.c fixed double free --- hw/sdr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/sdr.c b/hw/sdr.c index 98808ce..a9590da 100644 --- a/hw/sdr.c +++ b/hw/sdr.c @@ -160,7 +160,8 @@ int sdr_close( sdr_t *sdr ) if ( sdr->dongle->dev != NULL ) { hw_close( sdr->dongle->dev ); - free( sdr->dongle->dev ); + //all ready free'd by rtlsdr + //free( sdr->dongle->dev ); sdr->dongle->dev = NULL; } free( sdr->dongle ); -- cgit v1.2.3