Added the free() call.