X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=util.cc;h=38f1f1dfa6357c43d8c44d8e915ac17528ca89c9;hb=4a312a9c567e5acae9f58587287795e0f7b0cd6c;hp=13ad9918d5a21e69dedeb3e9636bc34a99c9897f;hpb=90073d1fa61f5ac3f033dc6aab351b9add40dcaf;p=cumulus.git diff --git a/util.cc b/util.cc index 13ad991..38f1f1d 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; } @@ -98,13 +98,3 @@ long long parse_int(const string &s) { return strtoll(s.c_str(), NULL, 0); } - -/* Output a dictionary of string key/value pairs to the given output stream. - * The format is a sequence of lines of the form "key: value". */ -void dict_output(ostream &o, map dict) -{ - for (map::const_iterator i = dict.begin(); - i != dict.end(); ++i) { - o << i->first << ": " << i->second << "\n"; - } -}