|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77502 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2012-03-23 12:52:49
Author: steven_watanabe
Date: 2012-03-23 12:52:48 EDT (Fri, 23 Mar 2012)
New Revision: 77502
URL: http://svn.boost.org/trac/boost/changeset/77502
Log:
Fix memory leak.
Text files modified:
trunk/tools/build/v2/engine/builtins.c | 7 ++++++-
1 files changed, 6 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 12:52:48 EDT (Fri, 23 Mar 2012)
@@ -1568,7 +1568,12 @@
*/
if ( dotdots )
{
- if ( rooted ) return L0;
+ if ( rooted )
+ {
+ string_free( out );
+ string_free( in );
+ return L0;
+ }
do
string_append( out, "/.." );
while ( --dotdots );
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