Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Remove unnecessary allocation

parent 02da2d72
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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))