Skip to content

Commit 557a436

Browse files
authored
minor: Fix memory leak on sdr_open_soapy error (#3202)
1 parent 474feb5 commit 557a436

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sdr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,7 @@ static int sdr_open_soapy(sdr_dev_t **out_dev, char const *dev_query, int verbos
947947
if (r != 0) {
948948
if (verbose)
949949
print_log(LOG_ERROR, __func__, "Failed to setup sdr device");
950+
free(dev->dev_info);
950951
free(dev);
951952
return -3;
952953
}

0 commit comments

Comments
 (0)