summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-10-25 10:34:30 +0000
committerFreeArtMan <dos21h@gmail.com>2015-10-25 10:34:30 +0000
commitbe3a3b73a00e9d418cb52706febb85f61882161f (patch)
tree347bbbc6daf632c56b88569108128afc17da4937 /hw
parent802b7e84fdaeb496a640bf001289fcb7d5a29040 (diff)
downloadradiola-be3a3b73a00e9d418cb52706febb85f61882161f.tar.gz
radiola-be3a3b73a00e9d418cb52706febb85f61882161f.zip
hw/sdr.c fixed double free
Diffstat (limited to 'hw')
-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 );