diff options
author | Minje Ahn <minje.ahn@samsung.com> | 2021-03-22 14:33:52 +0900 |
---|---|---|
committer | Minje ahn <minje.ahn@samsung.com> | 2021-03-23 01:05:45 +0000 |
commit | d1628f9255f12da6f49217c65521779a29e10f87 (patch) | |
tree | 5e371f3d2c36518df99aaa55cdb6a579e4a1bdc0 | |
parent | fdb904b5e4947d9d4677817415c59bacdc73afcd (diff) | |
download | libmedia-service-d1628f9255f12da6f49217c65521779a29e10f87.tar.gz libmedia-service-d1628f9255f12da6f49217c65521779a29e10f87.tar.bz2 libmedia-service-d1628f9255f12da6f49217c65521779a29e10f87.zip |
Fix memory leak
Change-Id: I92454508f2d2b2d330dde2c9a6ac1c756e716a91
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-x | src/common/media-svc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/media-svc.c b/src/common/media-svc.c index 3c81eb7..e45fcfc 100755 --- a/src/common/media-svc.c +++ b/src/common/media-svc.c @@ -133,6 +133,7 @@ int media_svc_create_table(uid_t uid) sql = sqlite3_mprintf("pragma user_version = %d;", LATEST_DB_VERSION); ret = _media_svc_sql_query(sql, uid); + SQLITE3_SAFE_FREE(sql); if (ret != MS_MEDIA_ERR_NONE) { media_svc_error("user_version update fail."); goto ERROR; |