diff options
author | Florian Weimer <fweimer@redhat.com> | 2015-04-27 15:41:03 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2015-04-27 16:19:55 +0200 |
commit | cc8dcf96e71dd643f929e32150904cd6ad69efa8 (patch) | |
tree | 0711c094ad29df752a51ffff7120f7b48a945dfd /ChangeLog | |
parent | 2dd6ee79b19ccfdd7f68cd534b8b71f77479132b (diff) | |
download | glibc-cc8dcf96e71dd643f929e32150904cd6ad69efa8.zip glibc-cc8dcf96e71dd643f929e32150904cd6ad69efa8.tar.gz glibc-cc8dcf96e71dd643f929e32150904cd6ad69efa8.tar.bz2 |
test-skeleton: Support temporary files without memory leaks [BZ#18333]
add_temp_file now makes a copy which is freed by delete_temp_files.
Callers to create_temp_file can now free the returned file name to
avoid the memory leak. These changes do not affect the leak behavior
of existing code.
Also address a NULL pointer derefence in tzset after a memoru allocation
failure, found during testing.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,14 @@ +2015-04-27 Florian Weimer <fweimer@redhat.com> + + [BZ#18333] + * time/tzset.c (parse_tzname): Return error on memory allocation + failure. + * test-skeleton.c (struct temp_name_list): Change type of name + member to non-const. + (add_temp_file): Create a copy of the file name. + (delete_temp_files): Deallocate memory. + (create_temp_file): Add comment. + 2015-04-24 Florian Weimer <fweimer@redhat.com> * io/posix_fallocate.c (posix_fallocate): Do not set errno. |