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))
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to