summaryrefslogtreecommitdiffstats
path: root/src/tests/settings_test.c
diff options
context:
space:
mode:
authorMichael Brown2012-05-03 16:24:01 +0200
committerMichael Brown2012-05-04 16:15:34 +0200
commit69fa29029c59ede576eda895fc208f88873a9d03 (patch)
tree9f3baa2b938d9fe028d81a80fb2aad381854191a /src/tests/settings_test.c
parent[malloc] Discard all cached data on shutdown (diff)
downloadipxe-69fa29029c59ede576eda895fc208f88873a9d03.tar.gz
ipxe-69fa29029c59ede576eda895fc208f88873a9d03.tar.xz
ipxe-69fa29029c59ede576eda895fc208f88873a9d03.zip
[test] Fix memory leak in settings self-tests
Detected using Valgrind. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/settings_test.c')
-rw-r--r--src/tests/settings_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/settings_test.c b/src/tests/settings_test.c
index ccc2694b..ac4abee4 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 );
}