Fixed prevent
authorSoyoung Kim <sy037.kim@samsung.com>
Wed, 26 Jun 2013 13:17:12 +0000 (22:17 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 27 Jun 2013 04:22:12 +0000 (04:22 +0000)
[Issue#] prevent-58873
[Problem] resource leak
[Cause] not free malloc variable.
[Solution] free variable.
[SCMRequest] N/A

Change-Id: Ia4bd98027d4050cda907e50d65247500ad70cd2f

src/jobs/widget_install/task_widget_config.cpp

index 00c5fa0..b8bb7ea 100755 (executable)
@@ -550,8 +550,9 @@ void TaskWidgetConfig::StepVerifyLivebox()
             boxType.c_str(), boxSize, boxSizeCnt);
 
         for(int i = 0; i < boxSizeCnt; i++) {
-            delete[] boxSize[i];
+            free(boxSize[i]);
         }
+        free(boxSize);
 
         if(!chkSize) {
             LogError("Invalid boxSize");