From: Hyunil Date: Fri, 8 Dec 2017 04:49:51 +0000 (+0900) Subject: waylandsink : fix coverity issue X-Git-Tag: accepted/tizen/unified/20220217.153506~2^2~10^2~9^2~12^2~2^2~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6735eb92ed5f78a7a41d383f11bae70129d3cd4;p=platform%2Fupstream%2Fgstreamer.git waylandsink : fix coverity issue Change-Id: Iabd91d1c0d8ede93f3a3674b797f3c7a9443b7c7 Signed-off-by: Hyunil --- diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c index 2f8d914..ee4c6ef 100755 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -699,6 +699,7 @@ gst_wayland_sink_make_flush_buffer (GstWlDisplay * display, strerror_r (errno, err_str, sizeof (err_str)); GST_ERROR ("alloc tbm bo(size:%d) failed: %s(%d)", bo_size, err_str, errno); + g_free (flush_buffer); return FALSE; } GST_LOG ("flush buffer tbm_bo =(%p)", bo); @@ -718,7 +719,8 @@ gst_wayland_sink_make_flush_buffer (GstWlDisplay * display, tbm_bo_unmap (mm_video_buf->handle.bo[i]); if (dst.ptr) tbm_bo_unmap (bo); - return FALSE; + g_free (flush_buffer); + return FALSE; } /* copy */ memcpy (dst.ptr, src.ptr, bo_size);