Skip to content

Commit

Permalink
Merge pull request #1192 from KJ4ERJ/STLString-free
Browse files Browse the repository at this point in the history
Free the newly allocated string, not the local buffer
  • Loading branch information
seclorum authored Jul 11, 2017
2 parents 5aa0089 + aaa4617 commit 6604b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zl-util/STLString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void STLString::write_var ( cc8* format, va_list args ) {
this->append ( buffer );

if ( buffer != str ) {
free ( buffer );
free ( str );
}
}

Expand Down

0 comments on commit 6604b53

Please sign in to comment.