Fixed Prevent Issues. CID 49075, 44391
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Mon, 8 Apr 2013 11:16:17 +0000 (20:16 +0900)
committerjunsuk77.oh <junsuk77.oh@samsung.com>
Mon, 8 Apr 2013 11:16:17 +0000 (20:16 +0900)
Change-Id: Ie5d4ee63581e9bb07048d8a2e630858d99a4fdfc
Signed-off-by: junsuk77.oh <junsuk77.oh@samsung.com>
packaging/pkgmgr.spec
server/src/pkgmgr-server.c
tool/pkg_info.c

index 73c5bba..0beee15 100755 (executable)
@@ -1,7 +1,7 @@
 #sbs-git:slp/pkgs/s/slp-pkgmgr pkgmgr 0.1.103 29b53909a5d6e8728429f0a188177eac691cb6ce
 Name:       pkgmgr
 Summary:    Packager Manager client library package
-Version:    0.2.69
+Version:    0.2.70
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0
index 74a2f62..06889ef 100755 (executable)
@@ -1226,8 +1226,11 @@ pop:
 
                        if (strcmp(item->pkg_type, "tpk") == 0) {
                                ret = __is_efl_tpk_app(item->pkgid);
-                               if (ret == 1)
+                               if (ret == 1) {
+                                       if (backend_cmd)
+                                               free(backend_cmd);
                                        backend_cmd = _get_backend_cmd("efltpk");
+                               }
                        }
 
                        if (NULL == backend_cmd)
index 3266b7f..9e6dd92 100755 (executable)
@@ -1862,6 +1862,9 @@ int main(int argc, char *argv[])
        long endtime;
        struct timeval tv;
 
+       gettimeofday(&tv, NULL);
+       starttime = tv.tv_sec * 1000l + tv.tv_usec / 1000l;
+
        locale = vconf_get_str(VCONFKEY_LANGSET);
        if (locale == NULL) {
                printf("locale is NULL\n");
@@ -1871,8 +1874,6 @@ int main(int argc, char *argv[])
        else
                printf("Locale is %s\n", locale);
 
-       gettimeofday(&tv, NULL);
-       starttime = tv.tv_sec * 1000l + tv.tv_usec / 1000l;
 
        free(locale);
        locale = NULL;