From: David Kalnischkies Date: Wed, 15 Jan 2014 15:14:23 +0000 (+0100) Subject: actually register the tempfile removal atexit X-Git-Tag: 0.9.14.3.exp2~6 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/9aaa45283b14c3c81641f3f3e38157a267b1e8f7 actually register the tempfile removal atexit Git-Dch: Ignore --- diff --git a/test/libapt/sourcelist_test.cc b/test/libapt/sourcelist_test.cc index 6e83d08e0..adadae6a7 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);