Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2018 07:42:28 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335469 - head/usr.bin/systat
Message-ID:  <201806210742.w5L7gSO1036524@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Thu Jun 21 07:42:28 2018
New Revision: 335469
URL: https://svnweb.freebsd.org/changeset/base/335469

Log:
  Don't leak tmpstr.
  
  MFC after:	2 weeks

Modified:
  head/usr.bin/systat/cmds.c

Modified: head/usr.bin/systat/cmds.c
==============================================================================
--- head/usr.bin/systat/cmds.c	Thu Jun 21 06:10:52 2018	(r335468)
+++ head/usr.bin/systat/cmds.c	Thu Jun 21 07:42:28 2018	(r335469)
@@ -61,7 +61,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?201806210742.w5L7gSO1036524>