mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
Remove unnecessary allocation
Reported-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
02da2d7217
commit
64c59a3726
@ -569,10 +569,9 @@ gss_svc_searchbyctx(struct cache_detail *cd, struct xdr_netobj *handle)
|
||||
struct rsc *found;
|
||||
|
||||
memset(&rsci, 0, sizeof(rsci));
|
||||
if (dup_to_netobj(&rsci.handle, handle->data, handle->len))
|
||||
return NULL;
|
||||
rsci.handle.data = handle->data;
|
||||
rsci.handle.len = handle->len;
|
||||
found = rsc_lookup(cd, &rsci);
|
||||
rsc_free(&rsci);
|
||||
if (!found)
|
||||
return NULL;
|
||||
if (cache_check(cd, &found->h, NULL))
|
||||
|
Loading…
Reference in New Issue
Block a user