From 5f73d7406211fe6cebde0a217deeb0d5582224b2 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Fri, 22 May 2015 12:47:02 -0700 Subject: [PATCH] Bug 1167249: Use delete[] instead of delete to deallocate some arrays in mochitest ssltunnel.cpp. r=ted --- testing/mochitest/ssltunnel/ssltunnel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/mochitest/ssltunnel/ssltunnel.cpp b/testing/mochitest/ssltunnel/ssltunnel.cpp index 144f8f47f8ac..589da7db3141 100644 --- a/testing/mochitest/ssltunnel/ssltunnel.cpp +++ b/testing/mochitest/ssltunnel/ssltunnel.cpp @@ -1318,8 +1318,8 @@ int processConfigLine(char* configLine) PLHashEntry* entry = PL_HashTableAdd(existingServer->host_redir_table, hostname_copy, redir_copy); if (!entry) { LOG_ERROR(("Out of memory")); - delete hostname_copy; - delete redir_copy; + delete[] hostname_copy; + delete[] redir_copy; return 1; } }