From 7e7e1b062be699917d58f5cd1e7a099d2c74d95d Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 28 Dec 2017 05:33:39 +0000 Subject: [PATCH] Free inb on error return. CID: 270099 --- usr.bin/tcopy/tcopy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c index 85645c432572..24dcc969a9af 100644 --- a/usr.bin/tcopy/tcopy.c +++ b/usr.bin/tcopy/tcopy.c @@ -263,6 +263,7 @@ r2: if (inn != outn) { if (!inn) { if (eot++) { fprintf(msg, "tcopy: tapes are identical.\n"); + free(inb); return; } } else {