diff options
author | Seungha Yang <seungha.yang@navercorp.com> | 2018-12-11 20:12:41 +0900 |
---|---|---|
committer | Seungha Yang <seungha.yang@navercorp.com> | 2018-11-12 20:12:41 +0900 |
commit | 3332e39baab9395a50fcb9d28ff034f0b446a655 (patch) | |
tree | 44e529b09ed5d7d16c21377fbc31c37f842d182d /gst/gsttracerrecord.c | |
parent | 5f469abbed914334445b3f436a556811746d0598 (diff) |
gst: Fix string leak when G_VALUE_COLLECT_INIT() was failed
Returned string should be freed
Fixes #319
Diffstat (limited to 'gst/gsttracerrecord.c')
-rw-r--r-- | gst/gsttracerrecord.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gsttracerrecord.c b/gst/gsttracerrecord.c index 2446a6e9c6..639a4ccbb3 100644 --- a/gst/gsttracerrecord.c +++ b/gst/gsttracerrecord.c @@ -208,6 +208,7 @@ gst_tracer_record_new (const gchar * name, const gchar * firstfield, ...) G_VALUE_COLLECT_INIT (&val, type, varargs, G_VALUE_NOCOPY_CONTENTS, &err); if (G_UNLIKELY (err)) { g_critical ("%s", err); + g_free (err); break; } /* see boxed_proxy_collect_value */ |