From 1187511bb7f9942605f779843be0adb52e46c1a7 Mon Sep 17 00:00:00 2001 From: suter Date: Tue, 8 Oct 2013 15:03:49 +0200 Subject: [PATCH] leak-- --- src/simix/smx_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simix/smx_io.c b/src/simix/smx_io.c index aee5550b9a..438d87dca7 100644 --- a/src/simix/smx_io.c +++ b/src/simix/smx_io.c @@ -221,7 +221,7 @@ int SIMIX_file_unlink(smx_process_t process, smx_file_t fd) } if (surf_workstation_model->extension.workstation.unlink(host, fd->surf_file)){ - fd->surf_file = NULL; + xbt_free(fd); return 1; } else return 0; -- 2.20.1