free mem for UHD handler if no UHD device was found

This commit is contained in:
Andre Puschmann 2018-12-30 22:35:06 +01:00
parent d7b92b8f77
commit 98780c1af5
1 changed files with 1 additions and 0 deletions

View File

@ -466,6 +466,7 @@ int rf_uhd_open_multi(char *args, void **h, uint32_t nof_channels)
uhd_error error = uhd_usrp_make(&handler->usrp, args);
if (error) {
fprintf(stderr, "Error opening UHD: code %d\n", error);
free(handler);
return -1;
}