]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs_gui/facturas.c
Arreglo memory leak (god bless valgrind! :)
[z.facultad/75.06/emufs.git] / emufs_gui / facturas.c
index 3d44564550e198dd9b396b7df6b6e935ddb0637e..f940890f9ffb842eb0cc62a7c8ea3361a22a7d79 100644 (file)
@@ -144,6 +144,8 @@ t_LstFacturas *fact_cargar(const char *filename, int tipo, int tam_bloque)
        if (filename != NULL) {
                document = xmlReadFile(filename, "ISO-8859-1",0);
                if (document == NULL) {
+                       free(tmp);
+                       lst_facturas = NULL;
                        return NULL;
                }