aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/diff/pr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/diff/pr.c b/usr.bin/diff/pr.c
index ce8620e14324..b03df9afc028 100644
--- a/usr.bin/diff/pr.c
+++ b/usr.bin/diff/pr.c
@@ -117,6 +117,7 @@ stop_pr(struct pr *pr)
err(2, "kevent");
wstatus = pr->e[0].data;
close(pr->kq);
+ free(pr);
if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) != 0)
errx(2, "pr exited abnormally");
else if (WIFSIGNALED(wstatus))