Fix a few malloc() and free() calls