GNOME Bugzilla – Bug 756231
mpegaudioparse: Fix buffer memory leak
Last modified: 2015-10-12 13:57:02 UTC
mapped buffer is not being unmapped during failures
Created attachment 312890 [details] [review] fix buffer leak
Review of attachment 312890 [details] [review]: ::: gst/audioparsers/gstmpegaudioparse.c @@ +439,1 @@ return TRUE; goto cleanup? @@ +678,1 @@ return FALSE; This looks interesting! The function returns a GstFlowReturn, not a gboolean. Also there's a "goto cleanup" here too. This needs some more fixup @@ +691,1 @@ return FALSE; Same here
Created attachment 313091 [details] [review] fix buffer leak In all the cases, goto cleanup works. It was working previously because, return FALSE is nothing but return GST_FLOW_OK. So goto cleanup also does the same, but in addition takes care of cleaning up the buffer
commit fb7783f8b0b6d0d699516e5c3fec9cb75ee271ab Author: Vineeth TM <vineeth.tm@samsung.com> Date: Mon Oct 12 10:48:23 2015 +0900 mpegaudioparse: Fix buffer memory leak during failures mapped buffer is not being unmapped during failures https://bugzilla.gnome.org/show_bug.cgi?id=756231