ac3parse: fix memory leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 17 Apr 2015 12:32:54 +0000 (13:32 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 17 Apr 2015 12:33:09 +0000 (13:33 +0100)
gst/audioparsers/gstac3parse.c

index c166dc8..4a6cd6d 100644 (file)
@@ -478,7 +478,8 @@ gst_ac3_parse_frame_header (GstAc3Parse * parse, GstBuffer * buf, gint skip,
     goto cleanup;
   } else {
     GST_DEBUG_OBJECT (parse, "unexpected bsid %d", bsid);
-    return FALSE;
+    ret = FALSE;
+    goto cleanup;
   }
 
   GST_DEBUG_OBJECT (parse, "unexpected bsid %d", bsid);