Fix leak in event-top.c history expansion