projects
/
platform
/
core
/
base
/
bundle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77839de
)
Fix memory leak
92/114992/1
author
Jiwoong Im
<jiwoong.im@samsung.com>
Thu, 16 Feb 2017 04:27:04 +0000
(13:27 +0900)
committer
Jiwoong Im
<jiwoong.im@samsung.com>
Thu, 16 Feb 2017 04:27:04 +0000
(13:27 +0900)
Change-Id: I3cba0c7e2168bae886a1018a51ab637de321a69d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
src/keyval.c
patch
|
blob
|
history
diff --git
a/src/keyval.c
b/src/keyval.c
index
9dda300
..
5a48c0e
100755
(executable)
--- a/
src/keyval.c
+++ b/
src/keyval.c
@@
-66,7
+66,7
@@
keyval_t *keyval_new(keyval_t *kv, const char *key,
kv->val = calloc(1, size);
if (!kv->val) {
set_last_result(BUNDLE_ERROR_OUT_OF_MEMORY);
- keyval_free(kv,
1
);
+ keyval_free(kv,
must_free_obj
);
return NULL;
}
if (val)