Module: wine Branch: master Commit: 100131fa7e2932120e143c686316f49583921307 URL: https://gitlab.winehq.org/wine/wine/-/commit/100131fa7e2932120e143c686316f49...
Author: Alex Henrie alexhenrie24@gmail.com Date: Tue Jun 6 23:44:59 2023 -0600
vbscript: Fix memory leak on error path in RegExp2_Execute (scan-build).
---
dlls/vbscript/vbregexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/vbscript/vbregexp.c b/dlls/vbscript/vbregexp.c index 6023b25c929..641798f97dd 100644 --- a/dlls/vbscript/vbregexp.c +++ b/dlls/vbscript/vbregexp.c @@ -1320,9 +1320,9 @@ static HRESULT WINAPI RegExp2_Execute(IRegExp2 *iface, break;
hres = add_match(match_collection, add); + IMatch2_Release(add); if(FAILED(hres)) break; - IMatch2_Release(add);
if(!(This->flags & REG_GLOB)) break;