Browse Source

[test] Fix memory leak in settings self-tests

Detected using Valgrind.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
69fa29029c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/tests/settings_test.c

+ 2
- 1
src/tests/settings_test.c View File

267
 			  0x7a, 0x7c, 0xfe, 0x4f, 0xca, 0x4a, 0x57 ),
267
 			  0x7a, 0x7c, 0xfe, 0x4f, 0xca, 0x4a, 0x57 ),
268
 		    "1a6a749d-0eda-461a-a87a-7cfe4fca4a57" );
268
 		    "1a6a749d-0eda-461a-a87a-7cfe4fca4a57" );
269
 
269
 
270
-	/* Unregister test settings block */
270
+	/* Clear and unregister test settings block */
271
+	clear_settings ( &test_settings );
271
 	unregister_settings ( &test_settings );
272
 	unregister_settings ( &test_settings );
272
 }
273
 }
273
 
274
 

Loading…
Cancel
Save