2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Do not free sudo_user.iolog_{file,path} in sudo_user_free().

They are not dynamically allocated.
This commit is contained in:
Todd C. Miller
2021-02-25 19:37:27 -07:00
parent 80e223b6c8
commit 48669edd35

View File

@@ -1681,8 +1681,6 @@ sudo_user_free(void)
free(runas_privs);
free(runas_limitprivs);
#endif
free(sudo_user.iolog_file);
free(sudo_user.iolog_path);
memset(&sudo_user, 0, sizeof(sudo_user));
debug_return;