diff --git a/src/cas/generic/casStrmClient.cc b/src/cas/generic/casStrmClient.cc index 0ed326075..4ecb290b0 100644 --- a/src/cas/generic/casStrmClient.cc +++ b/src/cas/generic/casStrmClient.cc @@ -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';