Added a thumbnail to test-mem.c to ensure it's properly freed.