mirror of
https://github.com/javalsai/lidm.git
synced 2026-02-27 03:50:44 +01: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