vbscript: Avoid memory leak in compile_select_statement (coverity)

André Hentschel nerv at dawncrow.de
Tue Oct 30 14:07:10 CDT 2012


CID 713771
---
 dlls/vbscript/compile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/vbscript/compile.c b/dlls/vbscript/compile.c
index 58afdf4..d324284 100644
--- a/dlls/vbscript/compile.c
+++ b/dlls/vbscript/compile.c
@@ -836,7 +836,7 @@ static HRESULT compile_select_statement(compile_ctx_t *ctx, select_statement_t *
 
         hres = push_instr_addr(ctx, OP_jmp, end_label);
         if(FAILED(hres))
-            return hres;
+            break;
     }
 
     heap_free(case_labels);
-- 
1.8.0



-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list