Fix leak in strftime handling.