summaryrefslogtreecommitdiff
path: root/hw/sdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sdr.c')
-rw-r--r--hw/sdr.c3
1 files changed, 2 insertions, 1 deletions
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 );