[WGID-370937] fix svace issue(MEMORY_LEAK) 96/197896/1 accepted/tizen/unified/20190128.061212 submit/tizen/20190117.231022
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 17 Jan 2019 04:25:40 +0000 (13:25 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 17 Jan 2019 04:25:44 +0000 (13:25 +0900)
Change-Id: I7ba56013b6f8ab4dfb5d0666d3df040f222e3994

packaging/download-provider.spec
provider/download-provider-db.c

index 8a6e64b..aecefbb 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.105
+Version:    2.1.106
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index ccc05e1..91f35cf 100755 (executable)
@@ -1371,6 +1371,7 @@ int dp_db_get_max_download_id(void *handle, const char *table, int *pvalue, int
        DP_DB_BUFFER_NULL_CHECK(query);
        //TRACE_DEBUG("debug query:%s", query);
        errorcode = sqlite3_prepare_v2(handle, query, -1, &stmt, NULL);
+       sqlite3_free(query);
        DP_DB_BASIC_EXCEPTION_CHECK;
 
        errorcode = sqlite3_step(stmt);