From 080a272c147732f5963c41e7a624b66001f2c0cf Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Mon, 29 Apr 2013 12:31:14 +0200 Subject: [PATCH] [Prevent] Fixing issue 52035 [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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wrt-installer/wrt-installer.cpp b/src/wrt-installer/wrt-installer.cpp index 58db8f4..7521ce7 100644 --- a/src/wrt-installer/wrt-installer.cpp +++ b/src/wrt-installer/wrt-installer.cpp @@ -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[]) -- 2.7.4