projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: plugin.c: leak of `bt_plugin_set`
[babeltrace.git]
/
src
/
lib
/
plugin
/
plugin.c
diff --git
a/src/lib/plugin/plugin.c
b/src/lib/plugin/plugin.c
index fbf02c510b361befa1b3df2092d09414280a1c98..8a54052740e679644da7afb063189c6d8931547e 100644
(file)
--- a/
src/lib/plugin/plugin.c
+++ b/
src/lib/plugin/plugin.c
@@
-470,6
+470,7
@@
enum bt_plugin_find_status bt_plugin_find(const char *plugin_name,
find_in_sys_dir, find_in_static, fail_on_load_error,
&plugin_set);
if (status != BT_FUNC_STATUS_OK) {
+ BT_ASSERT(!plugin_set);
goto end;
}
@@
-497,6
+498,8
@@
end:
"name=\"%s\"", plugin_name);
}
+ bt_plugin_set_put_ref(plugin_set);
+
return status;
}
This page took
0.023906 seconds
and
4
git commands to generate.