svn commit: r335002 - head/usr.bin/diff
Baptiste Daroussin
bapt at FreeBSD.org
Tue Jun 12 16:42:12 UTC 2018
Author: bapt
Date: Tue Jun 12 16:42:11 2018
New Revision: 335002
URL: https://svnweb.freebsd.org/changeset/base/335002
Log:
Fix memory leak
CID: 1393352
Modified:
head/usr.bin/diff/pr.c
Modified: head/usr.bin/diff/pr.c
==============================================================================
--- head/usr.bin/diff/pr.c Tue Jun 12 16:40:22 2018 (r335001)
+++ head/usr.bin/diff/pr.c Tue Jun 12 16:42:11 2018 (r335002)
@@ -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))
More information about the svn-src-all
mailing list