test-skeleton: Support temporary files without memory leaks [BZ#18333]
commitcc8dcf96e71dd643f929e32150904cd6ad69efa8
authorFlorian Weimer <fweimer@redhat.com>
Mon, 27 Apr 2015 13:41:03 +0000 (27 15:41 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 27 Apr 2015 14:19:55 +0000 (27 16:19 +0200)
tree0711c094ad29df752a51ffff7120f7b48a945dfd
parent2dd6ee79b19ccfdd7f68cd534b8b71f77479132b
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.
ChangeLog
NEWS
test-skeleton.c
time/tzset.c