mirror of https://github.com/PentHertz/srsLTE.git
free mem for UHD handler if no UHD device was found
This commit is contained in:
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);
|
uhd_error error = uhd_usrp_make(&handler->usrp, args);
|
||||||
if (error) {
|
if (error) {
|
||||||
fprintf(stderr, "Error opening UHD: code %d\n", error);
|
fprintf(stderr, "Error opening UHD: code %d\n", error);
|
||||||
|
free(handler);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue