mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
validate: report: fix GString leak when early returning
This commit is contained in:
parent
848d660603
commit
308fa194a7
1 changed files with 2 additions and 1 deletions
|
@ -676,7 +676,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
|
||||||
GstValidateAction *action = (GstValidateAction *) source;
|
GstValidateAction *action = (GstValidateAction *) source;
|
||||||
|
|
||||||
if (_action_check_and_set_printed (action))
|
if (_action_check_and_set_printed (action))
|
||||||
return;
|
goto out;
|
||||||
|
|
||||||
g_string_printf (string, "Executing ");
|
g_string_printf (string, "Executing ");
|
||||||
|
|
||||||
|
@ -764,6 +764,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
|
||||||
fflush (log_files[i]);
|
fflush (log_files[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out:
|
||||||
g_string_free (string, TRUE);
|
g_string_free (string, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue