Author: delphij
Date: Mon Jul 9 05:56:13 2018
New Revision: 336119
URL: https://svnweb.freebsd.org/changeset/base/336119
Log:
MFC r335469: Don't leak tmpstr.
Modified:
stable/11/usr.bin/systat/cmds.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/systat/cmds.c
==============================================================================
--- stable/11/usr.bin/systat/cmds.c Mon Jul 9 03:57:23 2018
(r336118)
+++ stable/11/usr.bin/systat/cmds.c Mon Jul 9 05:56:13 2018
(r336119)
@@ -59,7 +59,7 @@ command(const char *cmd)
if (*cp)
*cp++ = '\0';
if (*tmpstr1 == '\0')
- return;
+ goto done;
for (; *cp && isspace(*cp); cp++)
;
if (strcmp(tmpstr1, "quit") == 0 || strcmp(tmpstr1, "q") == 0)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"