mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
validate: utils: Plug some leaks
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5636>
This commit is contained in:
parent
ef62696505
commit
2f7d402f7b
1 changed files with 5 additions and 0 deletions
|
@ -1267,6 +1267,10 @@ gst_validate_replace_variables_in_string (gpointer source,
|
|||
}
|
||||
|
||||
if (!var_value) {
|
||||
g_free (varname);
|
||||
g_free (pvarname);
|
||||
g_free (string);
|
||||
g_clear_pointer (&match_info, g_match_info_free);
|
||||
if (!(flags & GST_VALIDATE_STRUCTURE_RESOLVE_VARIABLES_NO_FAILURE)) {
|
||||
gst_validate_error_structure (source,
|
||||
"Trying to use undefined variable `%s`.\n"
|
||||
|
@ -1276,6 +1280,7 @@ gst_validate_replace_variables_in_string (gpointer source,
|
|||
varname, gst_structure_to_string (local_vars),
|
||||
(flags & GST_VALIDATE_STRUCTURE_RESOLVE_VARIABLES_LOCAL_ONLY) ?
|
||||
": unused" : gst_structure_to_string (global_vars));
|
||||
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue