Nikolay Sivov : mshtml: Handle allocation failure during collection creation (Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 3 09:43:09 CDT 2015
Module: wine
Branch: master
Commit: a260d3efc625e763c12986cc101a113ca1e4bd73
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a260d3efc625e763c12986cc101a113ca1e4bd73
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Jun 3 14:36:02 2015 +0300
mshtml: Handle allocation failure during collection creation (Coverity).
---
dlls/mshtml/htmlelemcol.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/mshtml/htmlelemcol.c b/dlls/mshtml/htmlelemcol.c
index a57f39e..c6c65b1 100644
--- a/dlls/mshtml/htmlelemcol.c
+++ b/dlls/mshtml/htmlelemcol.c
@@ -824,6 +824,9 @@ static IHTMLElementCollection *HTMLElementCollection_Create(HTMLElement **elems,
{
HTMLElementCollection *ret = heap_alloc_zero(sizeof(HTMLElementCollection));
+ if (!ret)
+ return NULL;
+
ret->IHTMLElementCollection_iface.lpVtbl = &HTMLElementCollectionVtbl;
ret->ref = 1;
ret->elems = elems;
More information about the wine-cvs
mailing list