Fix leak in total progress bar

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2024-04-03 02:33:13 +10:00
parent 0ccb584262
commit f763ff774a

View file

@ -393,6 +393,7 @@ void cb_event(void *ctx, alpm_event_t *event)
if(total_enabled) {
update_bar_finalstats(totalbar);
draw_pacman_progress_bar(totalbar);
free(totalbar->filename);
free(totalbar);
printf("\n");
}