Commit 64c59a37 authored by J. Bruce Fields's avatar J. Bruce Fields

Remove unnecessary allocation

Reported-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 02da2d72
...@@ -569,10 +569,9 @@ gss_svc_searchbyctx(struct cache_detail *cd, struct xdr_netobj *handle) ...@@ -569,10 +569,9 @@ gss_svc_searchbyctx(struct cache_detail *cd, struct xdr_netobj *handle)
struct rsc *found; struct rsc *found;
memset(&rsci, 0, sizeof(rsci)); memset(&rsci, 0, sizeof(rsci));
if (dup_to_netobj(&rsci.handle, handle->data, handle->len)) rsci.handle.data = handle->data;
return NULL; rsci.handle.len = handle->len;
found = rsc_lookup(cd, &rsci); found = rsc_lookup(cd, &rsci);
rsc_free(&rsci);
if (!found) if (!found)
return NULL; return NULL;
if (cache_check(cd, &found->h, NULL)) if (cache_check(cd, &found->h, NULL))
......
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