aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01 14:39:10 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01 14:39:10 +0000
commitb602d2dfdf79d5e00595f78701b54339e15bf7d8 (patch)
treed9c2af37426bca12190c90d63d5c8bdb73c14666 /src/libstore
parentb90787290df216f511ec296c85390e645ca1e89f (diff)
* Wrong delete. Thanks valgrind.
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/references.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/references.cc b/src/libstore/references.cc
index 75a6efead..4e4bb7ad1 100644
--- a/src/libstore/references.cc
+++ b/src/libstore/references.cc
@@ -78,7 +78,7 @@ void checkPath(const string & path,
search(string((char *) buf, st.st_size), ids, seen);
- delete buf; /* !!! autodelete */
+ delete[] buf; /* !!! autodelete */
}
else if (S_ISLNK(st.st_mode))