2
0
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:
Steven Watanabe
2016-03-04 11:08:28 -07:00
parent b5dc9949d0
commit 8f39cdebc9

View File

@@ -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;
}