free mem for UHD handler if no UHD device was found

master
Andre Puschmann 6 years ago
parent d7b92b8f77
commit 98780c1af5

@ -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;
}

Loading…
Cancel
Save