diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2018-06-12 16:42:11 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2018-06-12 16:42:11 +0000 |
commit | 43d7b1c097bdd90eaadcaf41d87d526ca02f72b0 (patch) | |
tree | 8ef7872eb0166bfec7b48aae920124f575683f58 | |
parent | 5a43dca273c2628bb4936deb168acb063da5cee9 (diff) | |
download | src-43d7b1c097bdd90eaadcaf41d87d526ca02f72b0.tar.gz src-43d7b1c097bdd90eaadcaf41d87d526ca02f72b0.zip |
Fix memory leak
CID: 1393352
Notes
Notes:
svn path=/head/; revision=335002
-rw-r--r-- | usr.bin/diff/pr.c | 1 |
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)) |