[PATCH] vbscript: Don't free procs allocated in the heap pool.

Gabriel Ivăncescu gabrielopcode at gmail.com
Mon Dec 9 09:27:56 CST 2019


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---

As far as I can see, these procs are allocated in compiler.c into the
vbscode's heap pool, and freeing them with heap_free is obviously wrong.

 dlls/vbscript/vbdisp.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/dlls/vbscript/vbdisp.c b/dlls/vbscript/vbdisp.c
index 2e59051..47ecc15 100644
--- a/dlls/vbscript/vbdisp.c
+++ b/dlls/vbscript/vbdisp.c
@@ -1002,13 +1002,6 @@ static ULONG WINAPI ScriptDisp_Release(IDispatchEx *iface)
     if(!ref) {
         assert(!This->ctx);
 
-        while (This->procs)
-        {
-            class_desc_t *class_desc = This->procs;
-            This->procs = class_desc->next;
-            heap_free(class_desc);
-        }
-
         for (i = 0; i < This->global_vars_cnt; i++)
             release_dynamic_var(This->global_vars[i]);
 
-- 
2.21.0




More information about the wine-devel mailing list