mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Fix two memory leaks and a double free.
This commit is contained in:
@@ -574,9 +574,9 @@ static LIST * function_call_member_rule( JAM_FUNCTION * function, FRAME * frame,
|
||||
}
|
||||
}
|
||||
|
||||
list_free( first );
|
||||
result = evaluate_rule( rule, real_rulename, inner );
|
||||
frame_free( inner );
|
||||
object_free( rulename );
|
||||
object_free( real_rulename );
|
||||
return result;
|
||||
}
|
||||
@@ -4230,6 +4230,7 @@ LIST * function_run( FUNCTION * function_, FRAME * frame, STACK * s )
|
||||
result = var_get( frame->module, varname ) ;
|
||||
}
|
||||
}
|
||||
list_free( targets );
|
||||
stack_push( s, list_copy( result ) );
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user