diff --git a/historic/jam/src/expand.c b/historic/jam/src/expand.c index 65fa0ff5c..1aa8c1545 100644 --- a/historic/jam/src/expand.c +++ b/historic/jam/src/expand.c @@ -671,6 +671,8 @@ void var_expand_unit_test() for ( l2 = l, e2 = expected; l2 && e2; l2 = list_next(l2), e2 = list_next(e2) ) assert( !strcmp( e2->string, l2->string ) ); list_free(l); + + list_free(expected); lol_free(lol); } diff --git a/jam_src/expand.c b/jam_src/expand.c index 65fa0ff5c..1aa8c1545 100644 --- a/jam_src/expand.c +++ b/jam_src/expand.c @@ -671,6 +671,8 @@ void var_expand_unit_test() for ( l2 = l, e2 = expected; l2 && e2; l2 = list_next(l2), e2 = list_next(e2) ) assert( !strcmp( e2->string, l2->string ) ); list_free(l); + + list_free(expected); lol_free(lol); }