summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dynamic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp
index a4542760b..e96c9d905 100644
--- a/src/dynamic.cpp
+++ b/src/dynamic.cpp
@@ -71,6 +71,8 @@ DLLManager::DLLManager(char *fname)
h = dlopen(tmpfile_template, RTLD_NOW );
err = (char*)dlerror();
close(fd);
+ // We can delete the tempfile once it's loaded, leaving just the inode.
+ unlink(tmpfile_template);
#endif
}