about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstore/normalise.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/normalise.cc b/src/libstore/normalise.cc
index 87747837084c..309c1777f7df 100644
--- a/src/libstore/normalise.cc
+++ b/src/libstore/normalise.cc
@@ -818,6 +818,7 @@ void NormalisationGoal::terminateBuildHook()
     toHook.writeSide.close();
     fdLogFile.close();
     logPipe.readSide.close();
+    deleteTmpDir(true); /* get rid of the hook's temporary directory */
 }