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;