Skip to content

Commit ec6083e

Browse files
authored
Merge pull request #216 from ashishsangwan2/next
Fix mem_leak in xdr_rpc_gss_buf
2 parents 925ee1e + 06dac58 commit ec6083e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/authgss_prot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ xdr_rpc_gss_buf(XDR *xdrs, gss_buffer_t buf, u_int maxsize)
101101
case XDR_DECODE:
102102
return (xdr_rpc_gss_decode(xdrs, buf));
103103
case XDR_FREE:
104+
mem_free(buf->value, buf->length);
104105
return (TRUE);
105106
};
106107
return (FALSE);

0 commit comments

Comments
 (0)