projects
/
platform
/
core
/
api
/
image-util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b55837c
)
Fix memory leak
38/191038/1
author
hj kim
<backto.kim@samsung.com>
Thu, 11 Oct 2018 00:14:08 +0000
(09:14 +0900)
committer
hj kim
<backto.kim@samsung.com>
Thu, 11 Oct 2018 00:14:08 +0000
(09:14 +0900)
Change-Id: I3e1199762b5ca5f413c877208475c9fa598532c8
src/image_util.c
patch
|
blob
|
history
diff --git
a/src/image_util.c
b/src/image_util.c
index
31807fe
..
a5444af
100755
(executable)
--- a/
src/image_util.c
+++ b/
src/image_util.c
@@
-691,6
+691,8
@@
int image_util_transform_run(transformation_h handle, media_packet_h src, image_
err = _image_util_packet_to_image(src, &color_image);
image_util_retvm_if((err != IMAGE_UTIL_ERROR_NONE), err, "_image_util_packet_to_image failed");
+ IMAGE_UTIL_SAFE_FREE(_handle->_util_cb);
+
_handle->_util_cb = (image_util_cb_s *) calloc(1, sizeof(image_util_cb_s));
if (_handle->_util_cb == NULL) {
image_util_error("Memory allocation failed");