cas: fixed new[] .. free() mismatch (in OOM path)

Found by cppchecker, http://cppcheck.sf.net/
This commit is contained in:
Andrew Johnson
2010-09-29 00:44:47 -05:00
parent cbe2938628
commit 58b5b81cb3
+1 -1
View File
@@ -91,7 +91,7 @@ casStrmClient::casStrmClient (
this->pUserName = new ( std::nothrow ) char [1u];
if ( ! this->pUserName ) {
free ( this->pHostName );
delete [] this->pHostName;
throw std::bad_alloc();
}
*this->pUserName= '\0';