Fix a memory leak in py-param.c