projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Improve wording in relocatable-maint.texi.
[gnulib.git]
/
lib
/
clean-temp.c
diff --git
a/lib/clean-temp.c
b/lib/clean-temp.c
index
ef926e5
..
40ec02f
100644
(file)
--- a/
lib/clean-temp.c
+++ b/
lib/clean-temp.c
@@
-1,5
+1,5
@@
/* Temporary directories and temporary files with automatic cleanup.
/* Temporary directories and temporary files with automatic cleanup.
- Copyright (C) 2001, 2003, 2006-2007, 2009-201
2
Free Software Foundation,
+ Copyright (C) 2001, 2003, 2006-2007, 2009-201
3
Free Software Foundation,
Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
@@
-556,7
+556,10
@@
cleanup_temp_dir (struct temp_dir *dir)
}
else
cleanup_list.tempdir_list[i] = NULL;
}
else
cleanup_list.tempdir_list[i] = NULL;
- /* Now only we can free the tmpdir->dirname and tmpdir itself. */
+ /* Now only we can free the tmpdir->dirname, tmpdir->subdirs,
+ tmpdir->files, and tmpdir itself. */
+ gl_list_free (tmpdir->files);
+ gl_list_free (tmpdir->subdirs);
free (tmpdir->dirname);
free (tmpdir);
return err;
free (tmpdir->dirname);
free (tmpdir);
return err;