diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-10-25 10:34:30 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-10-25 10:34:30 +0000 |
commit | be3a3b73a00e9d418cb52706febb85f61882161f (patch) | |
tree | 347bbbc6daf632c56b88569108128afc17da4937 /hw | |
parent | 802b7e84fdaeb496a640bf001289fcb7d5a29040 (diff) | |
download | radiola-be3a3b73a00e9d418cb52706febb85f61882161f.tar.gz radiola-be3a3b73a00e9d418cb52706febb85f61882161f.zip |
hw/sdr.c fixed double free
Diffstat (limited to 'hw')
-rw-r--r-- | hw/sdr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 ); |