diff options
author | Havard Graff <havard.graff@tandberg.com> | 2011-11-01 17:57:59 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-01-05 13:27:23 +0000 |
commit | 95be60de15801c8fec702672f9c1437298138e2f (patch) | |
tree | 7bdad3267b955abbc945004b4da81f246e164d97 /tools | |
parent | b11d516c46beaac194785b36ae0245c10f00c620 (diff) |
Fix various unlikely, but still potential memoryleaks in error code paths
https://bugzilla.gnome.org/show_bug.cgi?id=667311
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-discoverer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c index 5a168d636..c6d609277 100644 --- a/tools/gst-discoverer.c +++ b/tools/gst-discoverer.c @@ -456,6 +456,8 @@ process_file (GstDiscoverer * dc, const gchar * filename) g_print ("Analyzing %s\n", uri); info = gst_discoverer_discover_uri (dc, uri, &err); print_info (info, err); + if (err) + g_error_free (err); gst_discoverer_info_unref (info); if (st) gst_structure_free (st); |