linux-group-putback-20050802
authorChas Williams <chas@cmf.nrl.navy.mil>
Tue, 2 Aug 2005 06:15:54 +0000 (06:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 2 Aug 2005 06:15:54 +0000 (06:15 +0000)
FIXES 20562

put back reference before discarding group pointer

src/afs/LINUX/osi_groups.c

index 33ea307..8a4e2d2 100644 (file)
@@ -172,6 +172,7 @@ setpag(cred_t ** cr, afs_uint32 pagvalue, afs_uint32 * newpag,
     
     for (i = 0; i < group_info->ngroups; ++i)
       GROUP_AT(tmp, i + need_space) = GROUP_AT(group_info, i);
+    put_group_info(group_info);
     group_info = tmp;
 
     *newpag = (pagvalue == -1 ? genpag() : pagvalue);