Explorar el Código

try to avoid reopening a file which was removed

Samuel Thibault hace 7 años
padre
commit
c716cfa76e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/core/disk_ops/unistd/disk_unistd_global.c

+ 1 - 0
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -202,6 +202,7 @@ static void _starpu_unistd_fini(struct starpu_unistd_global_obj *obj)
 	STARPU_PTHREAD_MUTEX_DESTROY(&obj->mutex);
 
 	free(obj->path);
+	obj->path = NULL;
 	free(obj);
 }