diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-01T14·39+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-01T14·39+0000 |
commit | b602d2dfdf79d5e00595f78701b54339e15bf7d8 (patch) | |
tree | d9c2af37426bca12190c90d63d5c8bdb73c14666 /src | |
parent | b90787290df216f511ec296c85390e645ca1e89f (diff) |
* Wrong delete. Thanks valgrind.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/references.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/references.cc b/src/libstore/references.cc index 75a6efead0b2..4e4bb7ad1e62 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)) |