Fix memory leaks in metadata_t.c