From 66b4bd19f70ab35874030e3498fd9d4c72966ada Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Sun, 6 Mar 2005 10:54:54 +0000 Subject: [PATCH] Bug 283514 OOM mlk [@ WSPTestComplexType::Array2] patch by dewildt@gmail.com r=timeless sr=bz --- extensions/webservices/proxy/tests/wspproxytest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/webservices/proxy/tests/wspproxytest.cpp b/extensions/webservices/proxy/tests/wspproxytest.cpp index 53be091d1f11..b02ed9b0b0f5 100644 --- a/extensions/webservices/proxy/tests/wspproxytest.cpp +++ b/extensions/webservices/proxy/tests/wspproxytest.cpp @@ -763,6 +763,7 @@ WSPTestComplexType::Array3(PRUint32 *length, nsIWSPTestComplexType ***array3) } WSPTestComplexType* inst = new WSPTestComplexType(); if (!inst) { + nsMemory::Free((void *) ptr); return NS_ERROR_OUT_OF_MEMORY; } ptr[0] = inst;