From 9aaf5bb4facc3937c7599b01dae2ec8cf8bfda6b Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 4 Jul 2002 15:31:23 +0000 Subject: [PATCH] Clean up insignificant leak [SVN r14300] --- historic/jam/src/expand.c | 2 ++ jam_src/expand.c | 2 ++ 2 files changed, 4 insertions(+) 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); }