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 {