X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/0e4db6997a0ac80650f3ec37ba58f7e9a8083147..e12f7e6ef14af28c89e08f570e24c61493558731:/emufs_gui/facturas.c?ds=sidebyside diff --git a/emufs_gui/facturas.c b/emufs_gui/facturas.c index b9b798a..00b5276 100644 --- a/emufs_gui/facturas.c +++ b/emufs_gui/facturas.c @@ -281,10 +281,16 @@ t_LstFacturas *fact_cargar(const char *filename, int tipo, int tam_bloque) int fact_liberar(t_LstFacturas *l) { + t_Reg_Factura *del; if (l == NULL) l = lst_facturas; if (l == NULL) return 1; emufs_destruir(l->fp); + while (l->primero) { + del = l->primero; + l->primero = l->primero->sig; + free(del); + } free(l); lst_facturas = NULL;