summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getgroups.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getgroups.c')
-rw-r--r--libc/sysdeps/linux/common/getgroups.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/getgroups.c b/libc/sysdeps/linux/common/getgroups.c
index b2f34ed2f..10da03ddd 100644
--- a/libc/sysdeps/linux/common/getgroups.c
+++ b/libc/sysdeps/linux/common/getgroups.c
@@ -53,8 +53,7 @@ ret_error:
}
}
- if (kernel_groups)
- free(kernel_groups);
+ free(kernel_groups);
return ngids;
}
}