summaryrefslogtreecommitdiff
path: root/test/libapt/sourcelist_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/libapt/sourcelist_test.cc')
-rw-r--r--test/libapt/sourcelist_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libapt/sourcelist_test.cc b/test/libapt/sourcelist_test.cc
index ae5d11f66..701eeeaa7 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);