Module: wine Branch: master Commit: d2590f2099779e7e79bd8f1d3125750b7900e85a URL: https://source.winehq.org/git/wine.git/?a=commit;h=d2590f2099779e7e79bd8f1d3...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Wed Sep 4 23:48:51 2019 +0000
wbemprox: Return NULL on error (Coverity).
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 bbc96bf..299a2ed 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;