diff --git a/apps/src/sh.c b/apps/src/sh.c index 18f5198c..4bf2a099 100644 --- a/apps/src/sh.c +++ b/apps/src/sh.c @@ -87,6 +87,7 @@ void show_prompt() username = "??"; } else { username = user->pw_name; } + atexit(endpwent); } if (WEXITSTATUS(status)) { printf("%d [%s]> ", WEXITSTATUS(status), username); } else