Commit 6bb04f23 authored by Trond Myklebust's avatar Trond Myklebust

RPCSEC_GSS: Oops. Major memory leak here.

parent 91565996
...@@ -720,6 +720,7 @@ gss_marshal(struct rpc_task *task, u32 *p, int ruid) ...@@ -720,6 +720,7 @@ gss_marshal(struct rpc_task *task, u32 *p, int ruid)
goto out_put_ctx; goto out_put_ctx;
} }
p = xdr_encode_netobj(p, &bufout); p = xdr_encode_netobj(p, &bufout);
kfree(bufout.data);
return p; return p;
out_put_ctx: out_put_ctx:
gss_put_ctx(ctx); gss_put_ctx(ctx);
......
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