Commit 709c6562 authored by Adam Jackson's avatar Adam Jackson 🎧
Browse files

vnd: Fix a silly memory leak



'disp' was already allocated by LookupVendorPrivDispatch above,
clobbering it will do no good.
Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent bf991a5f
Pipeline #15244 passed with stages
in 1 minute and 18 seconds
......@@ -386,10 +386,6 @@ static int dispatch_GLXVendorPriv(ClientPtr client)
// Note that even if none of the vendors provides a dispatch stub,
// we'll still add an entry to the dispatch table, so that we don't
// have to look it up again later.
disp = (GlxVendorPrivDispatch *) malloc(sizeof(GlxVendorPrivDispatch));
if (disp == NULL) {
return BadAlloc;
}
disp->proc = GetVendorDispatchFunc(stuff->glxCode,
GlxCheckSwap(client,
......
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