From: Michael Brown Date: Thu, 3 May 2012 14:24:01 +0000 (+0100) Subject: [test] Fix memory leak in settings self-tests X-Git-Tag: v1.20.1~1816 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69fa29029c59ede576eda895fc208f88873a9d03;p=thirdparty%2Fipxe.git [test] Fix memory leak in settings self-tests Detected using Valgrind. Signed-off-by: Michael Brown --- diff --git a/src/tests/settings_test.c b/src/tests/settings_test.c index ccc2694bb..ac4abee48 100644 --- a/src/tests/settings_test.c +++ b/src/tests/settings_test.c @@ -267,7 +267,8 @@ static void settings_test_exec ( void ) { 0x7a, 0x7c, 0xfe, 0x4f, 0xca, 0x4a, 0x57 ), "1a6a749d-0eda-461a-a87a-7cfe4fca4a57" ); - /* Unregister test settings block */ + /* Clear and unregister test settings block */ + clear_settings ( &test_settings ); unregister_settings ( &test_settings ); }