From 43866270efa97a64061fb2b33ae133df61a172b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 9 May 2014 15:42:08 +0200 Subject: [PATCH] gl: Fix memory leak CID #1212171 --- gst-libs/gst/gl/gstglshadervariables.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglshadervariables.c b/gst-libs/gst/gl/gstglshadervariables.c index 156d68b22b..325a71f2d9 100644 --- a/gst-libs/gst/gl/gstglshadervariables.c +++ b/gst-libs/gst/gl/gstglshadervariables.c @@ -256,8 +256,10 @@ gst_gl_shadervariables_parse (GstGLShader * shader, char *variables, if (arraysize) { char *s = g_malloc (strlen (vartype) + 32); sprintf (s, "%s[%d]", vartype, arraysize); - if (strcmp (t, s)) + if (strcmp (t, s)) { + g_free (s); goto parse_error; + } } else { if (strcmp (t, vartype)) goto parse_error;