[PATCH] wbemprox: Return NULL on error (Coverity)

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Wed Sep 4 18:48:51 CDT 2019


CID 1453501

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/wbemprox/builtin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index bbc96bf1ab..299a2edc71 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -3886,7 +3886,7 @@ static struct array *get_systemenclosure_chassistypes( const char *buf, UINT len
     if (!(types = heap_alloc( sizeof(*types) )))
     {
         heap_free( ret );
-        goto done;
+        return NULL;
     }
     types[0] = chassis->type & ~0x80;
 
-- 
2.17.1




More information about the wine-devel mailing list