summaryrefslogtreecommitdiff
path: root/src/lib/evas/vg/evas_vg_cache.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-12-24 10:54:04 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2019-12-24 10:54:04 +0900
commit1a93a4c2ccc51ff8a7643facb387172c16813316 (patch)
tree39d6bae2ef733c00d94df572bc86ad65a43d66d7 /src/lib/evas/vg/evas_vg_cache.c
parent9178166e233e0e4df8f53086b5283bcf25280cab (diff)
evas_vg_cache: Prevent memory leak
Summary: free hash_key pointer Test Plan: N/A Reviewers: Hermet, YOhoho Reviewed By: YOhoho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10960
Diffstat (limited to 'src/lib/evas/vg/evas_vg_cache.c')
-rw-r--r--src/lib/evas/vg/evas_vg_cache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c
index 90adcaf00d..c980046ff1 100644
--- a/src/lib/evas/vg/evas_vg_cache.c
+++ b/src/lib/evas/vg/evas_vg_cache.c
@@ -276,7 +276,11 @@ evas_cache_vg_surface_key_get(Efl_Canvas_Vg_Node *root, int w, int h, int frame_
276 Eina_Strbuf *hash_key = eina_strbuf_new(); 276 Eina_Strbuf *hash_key = eina_strbuf_new();
277 eina_strbuf_append_printf(hash_key, "%p/%d/%d/%d", root, w, h, frame_idx); 277 eina_strbuf_append_printf(hash_key, "%p/%d/%d/%d", root, w, h, frame_idx);
278 const char *new_key = eina_strbuf_string_get(hash_key); 278 const char *new_key = eina_strbuf_string_get(hash_key);
279 if (!new_key) return NULL; 279 if (!new_key)
280 {
281 eina_strbuf_free(hash_key);
282 return NULL;
283 }
280 284
281 Eina_List *l; 285 Eina_List *l;
282 char *key; 286 char *key;