Don't forget to close the pinentry FILE streams

pull/10/head
Christopher Wellons 2017-12-23 22:59:51 -05:00
parent 04820f21e1
commit ed739bc3dd
1 changed files with 3 additions and 0 deletions

View File

@ -517,6 +517,9 @@ invoke_pinentry(char *buf, size_t len, char *prompt)
pinentry_decode(buf, len, line + 2);
else
fatal("pinentry protocol failure");
fclose(pfo);
fclose(pfi);
} else {
close(pin[1]);
close(pout[0]);