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); } }