Date: Mon, 9 Jul 2018 05:56:14 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r336119 - stable/11/usr.bin/systat Message-ID: <201807090556.w695uEEr078998@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807090556.w695uEEr078998>