diff --git a/src/zl-util/STLString.cpp b/src/zl-util/STLString.cpp index 5cb249aa4d..3aef785751 100644 --- a/src/zl-util/STLString.cpp +++ b/src/zl-util/STLString.cpp @@ -209,7 +209,7 @@ void STLString::write_var ( cc8* format, va_list args ) { this->append ( buffer ); if ( buffer != str ) { - free ( buffer ); + free ( str ); } }