diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-01-15 16:14:23 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-01-15 16:14:23 +0100 |
commit | 9aaa45283b14c3c81641f3f3e38157a267b1e8f7 (patch) | |
tree | b38fdf477a7b9297b456b94f17e2ebd40720299f | |
parent | c3a17127ad383ec8e1f480ff2e1a4dccaa537a11 (diff) | |
download | apt-9aaa45283b14c3c81641f3f3e38157a267b1e8f7.tar.gz |
actually register the tempfile removal atexit
Git-Dch: Ignore
-rw-r--r-- | test/libapt/sourcelist_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libapt/sourcelist_test.cc b/test/libapt/sourcelist_test.cc index 6e83d08e..adadae6a 100644 --- a/test/libapt/sourcelist_test.cc +++ b/test/libapt/sourcelist_test.cc @@ -36,6 +36,7 @@ int main(int argc, char *argv[]) ; FileFd fd; + atexit(remove_tmpfile); tempfile = strdup("apt-test.XXXXXXXX"); tempfile_fd = mkstemp(tempfile); |