diff options
Diffstat (limited to 'rpc/rpc-lib/src/auth-glusterfs.c')
-rw-r--r-- | rpc/rpc-lib/src/auth-glusterfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/auth-glusterfs.c b/rpc/rpc-lib/src/auth-glusterfs.c index 9996bfad458..47d197c054a 100644 --- a/rpc/rpc-lib/src/auth-glusterfs.c +++ b/rpc/rpc-lib/src/auth-glusterfs.c @@ -221,6 +221,12 @@ int auth_glusterfs_v2_authenticate (rpcsvc_request_t *req, void *priv) req->pid, req->uid, req->gid, lkowner_utoa (&req->lk_owner)); ret = RPCSVC_AUTH_ACCEPT; err: + /* TODO: instead use alloca() for these variables */ + if (au.groups.groups_val) + free (au.groups.groups_val); + if (au.lk_owner.lk_owner_val) + free (au.lk_owner.lk_owner_val); + return ret; } |