fix memory leak 75/142775/1
authorBoram Park <boram1288.park@samsung.com>
Mon, 7 Aug 2017 07:53:34 +0000 (16:53 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 7 Aug 2017 07:53:34 +0000 (16:53 +0900)
Change-Id: I3e259c314d069bc76884b96dba2b08d975060716

src/tdm_capture.c
src/tdm_pp.c

index 4772332f87e7c3d4d3813cd7444f087359a2ba6b..2bd198677501d051132bf0e55f7f5897140172bc 100644 (file)
@@ -578,6 +578,8 @@ tdm_capture_commit(tdm_capture *capture)
                        tdm_buffer_unref_backend(b->buffer);
                        _pthread_mutex_lock(&private_display->lock);
                        LIST_DEL(&b->link);
+
+                       free(b);
                }
        }
 
index 02de6698a4779eb6e9d664517a2007c12cf98068..52ef19b69b6404b33c14d6ba51ec18be755d57e5 100644 (file)
@@ -496,6 +496,8 @@ tdm_pp_commit(tdm_pp *pp)
                        tdm_buffer_unref_backend(b->dst);
                        _pthread_mutex_lock(&private_display->lock);
                        LIST_DEL(&b->link);
+
+                       free(b);
                }
        }