From 011c04ed2e4b5415b6d68412b7ba30c2480658a2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 12 Mar 2006 17:48:51 +0000 Subject: r14246: Fix Coverity bug # 85 --- source/client/clitar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/client/clitar.c') diff --git a/source/client/clitar.c b/source/client/clitar.c index 020c11bf629..90d06cc94e9 100644 --- a/source/client/clitar.c +++ b/source/client/clitar.c @@ -1112,6 +1112,7 @@ static void do_tarput(void) /* Get us to the next block, or the first block first time around */ if (next_block(tarbuf, &buffer_p, tbufsiz) <= 0) { DEBUG(0, ("Empty file, short tar file, or read error: %s\n", strerror(errno))); + SAFE_FREE(longfilename); return; } @@ -1183,6 +1184,7 @@ static void do_tarput(void) } break; case 'L': + SAFE_FREE(longfilename); longfilename = get_longfilename(finfo); if (!longfilename) { DEBUG(0, ("abandoning restore\n")); -- cgit