store_lookup_test: Fixed a memory leak.

Thanks to Travis-CI for identifying this! I wonder why my local tests did not
catch this :-(