From e48f2e83a8d299b2dfc5e2669841ed12c0bd2716 Mon Sep 17 00:00:00 2001 From: imp 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 {