Fix resource leak when using the pwgen -H option

Reported-by: dcb314@users.sf.net

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Theodore Ts'o 2017-08-06 16:51:35 -04:00
parent 38282881f1
commit df7d8419ee

View File

@ -54,6 +54,8 @@ void pw_sha1_init(char *sha1)
sha1_update( &sha1_ctx, buf, i );
}
fclose(f);
return;
}