mirror of
https://github.com/boostorg/build.git
synced 2026-02-21 02:52:12 +00:00
Fix memory leaks from reused FRAME_INFO.
This commit is contained in:
@@ -1558,7 +1558,6 @@ static void debug_parent_backtrace( int argc, const char * * argv )
|
||||
OBJECT * depth_str;
|
||||
int depth;
|
||||
int i;
|
||||
FRAME_INFO frame;
|
||||
|
||||
if ( debug_state == DEBUG_NO_CHILD )
|
||||
{
|
||||
@@ -1577,6 +1576,7 @@ static void debug_parent_backtrace( int argc, const char * * argv )
|
||||
|
||||
for ( i = 0; i < depth; ++i )
|
||||
{
|
||||
FRAME_INFO frame;
|
||||
char buf[ 16 ];
|
||||
sprintf( buf, "%d", i );
|
||||
new_args[ 2 ] = buf;
|
||||
|
||||
Reference in New Issue
Block a user