summaryrefslogtreecommitdiffstats
path: root/bin/pwait
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-01-16 05:03:52 +0000
committereadler <eadler@FreeBSD.org>2013-01-16 05:03:52 +0000
commitb3d8782481d12417a40b90e1b8260fa56174f33c (patch)
tree3ad3c46fb7120b97040130489d06a4002ec8465b /bin/pwait
parentaa508f10e8cbfcec3a4e095e24c4294dcb49b7e2 (diff)
downloadFreeBSD-src-b3d8782481d12417a40b90e1b8260fa56174f33c.zip
FreeBSD-src-b3d8782481d12417a40b90e1b8260fa56174f33c.tar.gz
Free memory before exiting in order to silence a warning from the clang
static analyzer Approved by: cperciva MFC after: 3 days
Diffstat (limited to 'bin/pwait')
-rw-r--r--bin/pwait/pwait.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/pwait/pwait.c b/bin/pwait/pwait.c
index 26cf1bd..8d87a8d 100644
--- a/bin/pwait/pwait.c
+++ b/bin/pwait/pwait.c
@@ -141,5 +141,6 @@ main(int argc, char *argv[])
nleft -= n;
}
+ free(e);
return 0;
}
OpenPOWER on IntegriCloud