Fix memory leak in cgi_show_status() with extended statistics enabled