Fix memory leak in new progressbar.c