From 886256e17add793dcdf26aac88e364e56d9daaa7 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 18 Apr 2004 05:01:47 +0000 Subject: [PATCH] Se arregla memory leak (aunque en el ejemplo no importe demasiado :) --- emufs/tipo2_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/emufs/tipo2_main.c b/emufs/tipo2_main.c index 108a0a2..f0694ad 100644 --- a/emufs/tipo2_main.c +++ b/emufs/tipo2_main.c @@ -102,6 +102,7 @@ int main(int argc, char *argv[]) if (err == 0) { printf("tipo2_main.c >>Registro: %lu Size: %lu Content: %s\n\n",n2,reg_size,registro); } + if (registro) free(registro); /* Obtengo stats */ stats = efs->leer_estadisticas(efs); -- 2.43.0