GNOME Bugzilla – Bug 784887
gsm: Possible Memory leak in gst_buffer_unmap
Last modified: 2017-07-17 08:28:24 UTC
Hello All, There is possible memory leak in gst_buffer_unmap. File : gst-plugins-bad/ext/gsm/gstgsmenc.c In function "gst_gsmenc_handle_frame" at line: 182 gstbuffer is allocated and mapped like : outbuf = gst_buffer_new_and_alloc (33 * sizeof (gsm_byte)); gst_buffer_map (outbuf, &omap, GST_MAP_WRITE); But there is no unmap of this outbuf. Solution: There should be gst_buffer_unmap (outbuf , &omap) instead of gst_buffer_unmap (buffer, &omap); Please check and provide your feedback.
Can you provide a patch for this?
Yes.. I am preparing a patch for this ..soon I will upload it.
Created attachment 355732 [details] [review] gsm: Possible Memory leak in gst_buffer_unmap Hi, Please review attached patch and provide your feedback.
Created attachment 355733 [details] [review] gsm: Possible Memory leak in gst_buffer_unmap Hi All, Please review the patch and provide your feedback.
Thanks! commit c431fcda78799b2fe477cfb300ff9d86ceeb4b25 (HEAD -> master) Author: Satya Prakash Gupta <sp.gupta@samsung.com> Date: Thu Jul 13 13:17:57 2017 +0530 gsm: unmap output buffer when done https://bugzilla.gnome.org/show_bug.cgi?id=784887