2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Fix valgrind errors

[SVN r83886]
This commit is contained in:
Steven Watanabe
2013-04-13 22:34:45 +00:00
parent b99c32cbed
commit 43a8ec898f

View File

@@ -402,7 +402,7 @@ void module_set_fixed_variables( struct module_t * m, int n_variables )
LIST * * fixed_variables = BJAM_MALLOC( n_variables * sizeof( LIST * ) );
if ( m->fixed_variables )
{
memcpy( fixed_variables, m->fixed_variables, n_variables * sizeof( LIST * ) );
memcpy( fixed_variables, m->fixed_variables, m->num_fixed_variables * sizeof( LIST * ) );
BJAM_FREE( m->fixed_variables );
}
m->fixed_variables = fixed_variables;