From 6e3835594c0f2b9f1c700d7f2ea6f6d403f0c6f0 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 17 Apr 2015 13:32:54 +0100 Subject: [PATCH] ac3parse: fix memory leak --- gst/audioparsers/gstac3parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c index c166dc821a..4a6cd6d03c 100644 --- a/gst/audioparsers/gstac3parse.c +++ b/gst/audioparsers/gstac3parse.c @@ -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);