diff --git a/shadow.c b/shadow.c index 85fc5aa..0c474e6 100644 --- a/shadow.c +++ b/shadow.c @@ -93,8 +93,12 @@ void run_pw_backend_child(void) { exit(EXIT_FAILURE); } + // We don't want to keep it in memory longer than necessary, + // so clear *before* sleeping. clear_buffer(buf, size); free(buf); + + sleep(2); } clear_buffer(encpw, strlen(encpw));