From: Michael Vrable Date: Tue, 16 Oct 2007 20:47:34 +0000 (-0700) Subject: Fix mismatched new/delete calls. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=7eff3edfed612e90c5bdb02c05644e550f2270be;p=cumulus.git Fix mismatched new/delete calls. Caught by Valgrind: memory was being allocated with new[] but freed with delete. Use delete[] instead. --- 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; }