though there is still a memory leak, but it looks like the leak may be in BLI_smallhash.c, not knife code.