From 7eff3edfed612e90c5bdb02c05644e550f2270be Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Tue, 16 Oct 2007 13:47:34 -0700 Subject: [PATCH] Fix mismatched new/delete calls. Caught by Valgrind: memory was being allocated with new[] but freed with delete. Use delete[] instead. --- util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cc b/util.cc index 13ad991..a51fa3d 100644 --- a/util.cc +++ b/util.cc @@ -67,7 +67,7 @@ string uri_decode(const string &in) *output = '\0'; string result(buf); - delete buf; + delete[] buf; return result; } -- 2.20.1