Commit 723f5f1c authored by Robert Wilhelm's avatar Robert Wilhelm Committed by Alexandre Julliard

vbscript: Global_Split free delimiter only if it was allocated.

parent 6078375a
......@@ -2458,7 +2458,7 @@ error:
heap_free(indices);
if(V_VT(args) != VT_BSTR)
SysFreeString(string);
if(V_VT(args+1) != VT_BSTR)
if(args_cnt > 1 && V_VT(args+1) != VT_BSTR)
SysFreeString(delimiter);
return hres;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment