GNOME Bugzilla – Bug 785435
alawdec: Fix Memory leak in error case
Last modified: 2017-08-11 08:06:23 UTC
Created attachment 356406 [details] [review] Patch file is attached. File : gst-plugins-good/gst/law/alaw-decode.c Function gst_alaw_dec_handle_frame: inmap unref is missing . Solution : gst_buffer_unmap (buffer, &inmap); ++patch is attched for possible solution. Kindly review the patch and provide your feedback.
Comment on attachment 356406 [details] [review] Patch file is attached. Patch seems ok, but please update the commit message: https://gstreamer.freedesktop.org/documentation/contribute/index.html#writing-good-commit-messages It's also a definite leak on that error path, not a possible one.
Created attachment 356453 [details] [review] Updated patch is attached.
commit 4b8d0a294a60e1433ea60731c6ea4e911fc42f1c (HEAD -> master) Author: Sebastian Dröge <sebastian@centricular.com> Date: Thu Jul 27 14:21:34 2017 +0300 mulawdec: Unmap input buffer if failing to map the output buffer commit e3f6b9f36713f9272ae98a5984497cff75825884 Author: Satya Prakash Gupta <sp.gupta@samsung.com> Date: Thu Jul 27 09:22:25 2017 +0530 alawdec: Fix Memory leak in error case https://bugzilla.gnome.org/show_bug.cgi?id=785435