summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorwonguk.jeong <wonguk.jeong@samsung.com>2014-04-04 11:47:39 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-04-04 11:47:40 +0900
commit42a8a124efe5fee3dd98c4ad7f2c123df399c603 (patch)
treee047b23ba89dc72c618447d28fe23b7d4bd0c57b /src/modules
parent7da76dda1d70abd5ce6ad0727e126d63af093002 (diff)
map: remove memory leak
Summary: 1. Name of sources from external module was not free'd. (there was type mismatch between external module and internal impl.) 2. after eina_module_list_free(), eina_array_free() was not invoked. 3. alloc'd but not free'd @fix Test Plan: valgrind Reviewers: raster, cedric, seoz, bluezery, woohyun CC: seoz Differential Revision: https://phab.enlightenment.org/D661
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/test_map/mod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/test_map/mod.c b/src/modules/test_map/mod.c
index 452fd0598..7699390ac 100644
--- a/src/modules/test_map/mod.c
+++ b/src/modules/test_map/mod.c
@@ -5,10 +5,10 @@
5#include "Elementary.h" 5#include "Elementary.h"
6#include <Eina.h> 6#include <Eina.h>
7 7
8EAPI char * 8EAPI Eina_Stringshare *
9map_module_source_name_get(void) 9map_module_source_name_get(void)
10{ 10{
11 return strdup("test_map"); 11 return eina_stringshare_add("test_map");
12} 12}
13 13
14EAPI int 14EAPI int