goto error;
}
- path_value = bt_value_map_get(params, "path");
+ path_value = bt_value_map_borrow(params, "path");
ret = bt_value_string_get(path_value, &path);
if (ret) {
BT_LOGE_STR("Cannot get `path` string parameter.");
}
end:
- bt_put(path_value);
free(metadata_text);
if (g_metadata_text) {
}
}
- stream_class = bt_stream_get_class(stream);
+ stream_class = bt_stream_borrow_class(stream);
if (!stream_class) {
ret = -1;
goto end;
ret = -1;
goto end;
}
+
end:
- bt_put(stream_class);
return ret;
}
goto error;
}
- path_value = bt_value_map_get(params, "path");
+ path_value = bt_value_map_borrow(params, "path");
ret = bt_value_string_get(path_value, &path);
if (ret) {
BT_LOGE("Cannot get `path` string parameter.");
g_list_free(trace_names);
}
/* "path" becomes invalid with the release of path_value. */
- bt_put(path_value);
return query_ret;
}