From 76c5de7ae616f4d155b935d9443374629d12febc Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 21 Jun 2018 07:42:28 +0000 Subject: [PATCH] Don't leak tmpstr. MFC after: 2 weeks --- usr.bin/systat/cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/systat/cmds.c b/usr.bin/systat/cmds.c index 7eea5bd79d13..aa16167c96b5 100644 --- a/usr.bin/systat/cmds.c +++ b/usr.bin/systat/cmds.c @@ -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)