diff options
| author | Paul Eggert | 2013-07-17 19:12:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-17 19:12:59 -0700 |
| commit | f4b1eb36186a2f873d84d4c089292f9fb0394d31 (patch) | |
| tree | ea6a4d904679b9f50026abb6dfab00f9b693eb6a /src/ChangeLog | |
| parent | a0931322f6c257bb4a4a678f62dcb4ae3b253221 (diff) | |
| download | emacs-f4b1eb36186a2f873d84d4c089292f9fb0394d31.tar.gz emacs-f4b1eb36186a2f873d84d4c089292f9fb0394d31.zip | |
* charset.c: Fix file descriptor leaks and errno issues.
Include <errno.h>.
(load_charset_map_from_file): Don't leak file descriptor on error.
Use plain record_xmalloc since the allocation is larger than
MAX_ALLOCA; that's simpler here. Simplify test for exhaustion
of entries.
* eval.c (record_unwind_protect_nothing):
* fileio.c (fclose_unwind):
New functions.
* lread.c (load_unwind): Remove. All uses replaced by fclose_unwind.
The replacement doesn't block input, but that no longer seems
necessary.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 189a353bde6..3f667a7bcc7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2013-07-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * charset.c: Fix file descriptor leaks and errno issues. | ||
| 4 | Include <errno.h>. | ||
| 5 | (load_charset_map_from_file): Don't leak file descriptor on error. | ||
| 6 | Use plain record_xmalloc since the allocation is larger than | ||
| 7 | MAX_ALLOCA; that's simpler here. Simplify test for exhaustion | ||
| 8 | of entries. | ||
| 9 | * eval.c (record_unwind_protect_nothing): | ||
| 10 | * fileio.c (fclose_unwind): | ||
| 11 | New functions. | ||
| 12 | * lread.c (load_unwind): Remove. All uses replaced by fclose_unwind. | ||
| 13 | The replacement doesn't block input, but that no longer seems | ||
| 14 | necessary. | ||
| 15 | |||
| 1 | 2013-07-17 Paul Eggert <eggert@cs.ucla.edu> | 16 | 2013-07-17 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 17 | ||
| 3 | * lread.c: Fix file descriptor leaks and errno issues. | 18 | * lread.c: Fix file descriptor leaks and errno issues. |