diff options
author | Adam Jackson <ajax@redhat.com> | 2018-10-16 12:58:25 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2019-01-16 15:18:02 -0500 |
commit | 709c6562975c3bea10dd0571527a4aac79a6bf6f (patch) | |
tree | 96bb3db7172c17997327f5888a2a087b9dc7ee66 /glx | |
parent | bf991a5f989c5e6e726a3731f468b7b7d65d9f4a (diff) |
vnd: Fix a silly memory leak
'disp' was already allocated by LookupVendorPrivDispatch above,
clobbering it will do no good.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/vndcmds.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/glx/vndcmds.c b/glx/vndcmds.c index 45b1eafaa..f0779d14a 100644 --- a/glx/vndcmds.c +++ b/glx/vndcmds.c @@ -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, |