[Prevent] Fixing issue 52035
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 29 Apr 2013 10:31:14 +0000 (12:31 +0200)
committerGerrit Code Review <gerrit2@kim11>
Tue, 30 Apr 2013 06:29:09 +0000 (15:29 +0900)
[Issue#] LINUXWRT-234
[Problem] N/A
[Cause] N/A
[Solution] Free allocated buffer.
[Verification] Build repo.

Change-Id: I01dcd4579e14e32cf80f8daa4b6ad491be77c113

src/wrt-installer/wrt-installer.cpp

index 58db8f4..7521ce7 100644 (file)
@@ -1010,7 +1010,8 @@ CSCConfiguration::dataMap WrtInstaller::parseCSCConfiguration(
             CSCConfiguration::dataPair(string.substr(0, pos),
                                        string.substr(pos+1)));
     }
-     return result;
+    free(buf);
+    return result;
 }
 
 int main(int argc, char *argv[])