From 5ef038939fdb25179cd1ad8048def6f52a23c4d5 Mon Sep 17 00:00:00 2001 From: smanojna Date: Thu, 14 Dec 2006 21:43:50 +0000 Subject: [PATCH] - Security Audit fixes: freed dynamically allocated memory --- CASA/adlib/ad_ff/native/SignonManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CASA/adlib/ad_ff/native/SignonManager.cpp b/CASA/adlib/ad_ff/native/SignonManager.cpp index 83f0e24d..7753a609 100644 --- a/CASA/adlib/ad_ff/native/SignonManager.cpp +++ b/CASA/adlib/ad_ff/native/SignonManager.cpp @@ -427,6 +427,7 @@ int count = 0; dataManager.AddHost(newHostName); } retValue = dataManager.AddHostElement(newHostName, name, clearData, isPassword); + free(newHostName); } else retValue = dataManager.AddHostElement(hostName, name, clearData, isPassword); @@ -456,6 +457,8 @@ int count = 0; strncat(newHostName, uname, strlen(uname)); strncat(newHostName, ")", 1); dataManager.ModifyHost(hostName, newHostName); + free(newHostName); + free(uname); } }