From: Seonah Moon Date: Thu, 17 Jan 2019 04:25:40 +0000 (+0900) Subject: [WGID-370937] fix svace issue(MEMORY_LEAK) X-Git-Tag: accepted/tizen/unified/20190128.061212^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57b47ac9a879cca12190eca3c031a0d7a6382e05;p=platform%2Fframework%2Fweb%2Fdownload-provider.git [WGID-370937] fix svace issue(MEMORY_LEAK) Change-Id: I7ba56013b6f8ab4dfb5d0666d3df040f222e3994 --- diff --git a/packaging/download-provider.spec b/packaging/download-provider.spec index 8a6e64b..aecefbb 100755 --- a/packaging/download-provider.spec +++ b/packaging/download-provider.spec @@ -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 diff --git a/provider/download-provider-db.c b/provider/download-provider-db.c index ccc05e1..91f35cf 100755 --- a/provider/download-provider-db.c +++ b/provider/download-provider-db.c @@ -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);