mirror of
https://github.com/javalsai/lidm.git
synced 2025-09-05 04:28:00 +02:00
fix: memory leaks
This commit is contained in:
@@ -23,6 +23,7 @@ static struct user __new_user(struct passwd *p) {
|
||||
// This code is designed to be run purely single threaded
|
||||
struct Vector get_human_users() {
|
||||
struct Vector users = vec_new();
|
||||
vec_reserve(&users, 4);
|
||||
|
||||
struct passwd *pwd;
|
||||
while ((pwd = getpwent()) != NULL) {
|
||||
|
Reference in New Issue
Block a user