Fix SVACE Warnings 49/152449/2 accepted/tizen/4.0/unified/20170929.080102 accepted/tizen/unified/20170928.150100 submit/tizen/20170926.073110 submit/tizen/20170928.022029 submit/tizen/20170928.071356 submit/tizen_4.0/20170926.073138 submit/tizen_4.0/20170928.022104 submit/tizen_4.0/20170928.071300
authorKiseok Chang <kiso.chang@samsung.com>
Tue, 26 Sep 2017 07:23:41 +0000 (16:23 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Tue, 26 Sep 2017 07:27:55 +0000 (16:27 +0900)
Change-Id: Ib5dd605447f78bc82fd927fd6669c559b90ea826
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
setting-appmgr/src/setting-appmgr.c [changed mode: 0644->0755]
setting-license/src/setting-license-view.c

old mode 100644 (file)
new mode 100755 (executable)
index 484e1de..b9f136b
@@ -192,6 +192,9 @@ static void _setting_appmgr_app_control_cb(app_control_h app_control,
 
                setting_view_create(ad->pkginfo_view, ad);
                setting_view_node_set_cur_view(ad->pkginfo_view);
+
+               package_info_destroy(package_info);
+
        } else {
                setting_view_node_table_register(&setting_view_appmgr_main,
                                NULL);
index 0dbe363c6bdd79ce918e7688b23ba6cc9ff397c4..c00aaade7a9661e0bf0c490946db793290bf76f5 100755 (executable)
@@ -157,17 +157,20 @@ static int readZipFile(char *zipFile, char *fileInZip)
        if (unzLocateFile(uf, fileInZip, 1)) { // try to locate file inside zip
                // second argument of unzLocateFile: 1 = case sensitive, 0 = case-insensitive
                SETTING_TRACE("File %s not found in %s", fileInZip, zipFile);
+               unzCloseCurrentFile(uf);  // close the zipfile
                return -1;
        } // file inside zip found
 
        if (unzGetCurrentFileInfo(uf, &file_info, filename_inzip, sizeof(filename_inzip), NULL, 0, NULL, 0)) {
                SETTING_TRACE("Error %d with zipfile %s in unzGetCurrentFileInfo.", err, zipFile);
+               unzCloseCurrentFile(uf);  // close the zipfile
                return -1;
        } // obtained the necessary details about file inside zip
 
        buf = (void*)malloc(size_buf); // setup buffer
        if (buf == NULL) {
                SETTING_TRACE("Error allocating memory for read buffer");
+               unzCloseCurrentFile(uf);  // close the zipfile
                return -1;
        } // buffer ready
 
@@ -175,6 +178,7 @@ static int readZipFile(char *zipFile, char *fileInZip)
        if (err != UNZ_OK) {
                SETTING_TRACE("Error %d with zipfile %s in unzOpenCurrentFilePassword.", err, zipFile);
                free(buf);
+               unzCloseCurrentFile(uf);  // close the zipfile
                return -1;
        } // file inside the zip is open
 
@@ -184,6 +188,7 @@ static int readZipFile(char *zipFile, char *fileInZip)
        if (tempfile_fp == NULL) {
                SETTING_TRACE("Error to write tempfile :  %s", tempfilename);
                free(buf);
+               unzCloseCurrentFile(uf);  // close the zipfile
                return -1;
        } // open temp file