Fix memory leak 83/268983/1
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 6 Jan 2022 01:32:11 +0000 (10:32 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 6 Jan 2022 01:32:11 +0000 (10:32 +0900)
Change-Id: I0407ab804cbdc3ea911e617c144efcf3ab3275cc
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/pkgmgrinfo_archiveinfo.c

index 1e9099b..791bcd7 100644 (file)
@@ -63,6 +63,7 @@ API int pkgmgrinfo_archiveinfo_get_archiveinfo(const char *path,
                return PMINFO_R_ERROR;
        }
 
+       free(pkg_type);
        *handle = info;
 
        return PMINFO_R_OK;