From b602d2dfdf79d5e00595f78701b54339e15bf7d8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Mar 2006 14:39:10 +0000 Subject: [PATCH] * Wrong delete. Thanks valgrind. --- src/libstore/references.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))