Substitute malloc/free with new/delete

This commit is contained in:
Luis Diaz Mas
2018-08-27 11:50:17 +02:00
committed by Luis Díaz Más
parent 08cbb0c206
commit eb306fdbae
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ TEST(urldecode, decodesGivenUrl)
const std::string url ("http%3a%2f%2fwww.geekhideout.com%2furlcode.shtml");
char * url3 = urldecode(url.c_str());
ASSERT_STREQ(expectedDecodedUrl.c_str(), url3);
free(url3);
delete [] url3;
}
TEST(urldecode, decodesGivenUrlInPlace)