// need to duplicate response val, as uci_free_context() would free the value otherwise
if (ret_val != NULL)
ret_val = strdup(ret_val);
// need to duplicate response val, as uci_free_context() would free the value otherwise
if (ret_val != NULL)
ret_val = strdup(ret_val);