fix memory fix 90/69590/1 accepted/tizen/common/20160516.143535 accepted/tizen/ivi/20160517.032700 accepted/tizen/mobile/20160517.032933 accepted/tizen/tv/20160517.032719 accepted/tizen/wearable/20160517.032800 submit/tizen/20160516.121150
authorJooseok Park <jooseok.park@samsung.com>
Mon, 16 May 2016 04:42:55 +0000 (13:42 +0900)
committerJooseok Park <jooseok.park@samsung.com>
Mon, 16 May 2016 04:44:38 +0000 (13:44 +0900)
 - add g_free when creating g_hash_table

Change-Id: I78d8fae2008b6eef18712bf9e5e09a611a1df7be

packaging/tel-plugin-database.spec
src/database_main.c

index 2542c13..931ba4e 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 1
-%define patchlevel 26
+%define patchlevel 27
 
 Name:           tel-plugin-database
 Version:        %{major}.%{minor}.%{patchlevel}
index 41595a8..fe328b1 100644 (file)
@@ -160,7 +160,7 @@ static gboolean _read_query_database_internal(Storage *strg, void *handle, const
        while (rv == SQLITE_ROW) {
                GHashTable *out_param_data;
 
-               out_param_data = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free);
+               out_param_data = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
 
                for (local_index = 0; local_index < out_param_cnt; local_index++) {
                        char tmp_key[10];