|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77503 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2012-03-23 13:12:47
Author: steven_watanabe
Date: 2012-03-23 13:12:46 EDT (Fri, 23 Mar 2012)
New Revision: 77503
URL: http://svn.boost.org/trac/boost/changeset/77503
Log:
Fix memory leak
Text files modified:
trunk/tools/build/v2/engine/builtins.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/engine/builtins.c
==============================================================================
--- trunk/tools/build/v2/engine/builtins.c (original)
+++ trunk/tools/build/v2/engine/builtins.c 2012-03-23 13:12:46 EDT (Fri, 23 Mar 2012)
@@ -688,9 +688,10 @@
for ( ; iter != end; iter = list_next( iter ) )
{
- string_copy( s, object_str( list_item( iter ) ) );
+ string_append( s, object_str( list_item( iter ) ) );
downcase_inplace( s->value );
result = list_append( result, list_new( L0, object_new( s->value ) ) );
+ string_truncate( s, 0 );
}
string_free( s );
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk