X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/5b66d417c3e3e118874abb1861c8237e275bb614..f3a31266bd5ccd4391c104619ec1ebc79b48519f:/emufs/tipo2_main.c diff --git a/emufs/tipo2_main.c b/emufs/tipo2_main.c index ae03f7c..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); @@ -115,7 +116,7 @@ int main(int argc, char *argv[]) /* Recompacto */ printf("Recompactando...\n"); - emufs_tipo2_recompactar(efs); + efs->compactar(efs); /* Obtengo stats nevas */ stats = efs->leer_estadisticas(efs);