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 6ab30ba67..6fc84fd93 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);