projects
/
platform
/
core
/
uifw
/
libhangul.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fe3399
)
Fix memory leak in hanja_list_new()
78/40278/1
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Thu, 8 Jan 2015 04:14:28 +0000
(13:14 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Tue, 2 Jun 2015 00:29:01 +0000
(09:29 +0900)
Change-Id: I6915bd77a847f63471710583e084a19c1f30757e
hangul/hanja.c
patch
|
blob
|
history
diff --git
a/hangul/hanja.c
b/hangul/hanja.c
index 84c57b0a96adf2f833685b20acad02a2ff6d0922..bfad1e0c3ba00b129edcc9cf8987e9f26b8e18c6 100644
(file)
--- a/
hangul/hanja.c
+++ b/
hangul/hanja.c
@@
-344,6
+344,9
@@
hanja_list_new(const char *key)
list->alloc = 1;
list->items = malloc(list->alloc * sizeof(list->items[0]));
if (list->items == NULL) {
+ if (list->key)
+ free(list->key);
+
free(list);
list = NULL;
}