summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-12 17:48:51 +0000
committerVolker Lendecke <vlendec@samba.org>2006-03-12 17:48:51 +0000
commit011c04ed2e4b5415b6d68412b7ba30c2480658a2 (patch)
treeb35bae77e9930539d0efcf87d470316d601e0319 /source/client
parent6dd9b06e75126ae0922615e8c593a86a0b4ddf8a (diff)
downloadsamba-011c04ed2e4b5415b6d68412b7ba30c2480658a2.tar.gz
samba-011c04ed2e4b5415b6d68412b7ba30c2480658a2.tar.xz
samba-011c04ed2e4b5415b6d68412b7ba30c2480658a2.zip
r14246: Fix Coverity bug # 85
Diffstat (limited to 'source/client')
-rw-r--r--source/client/clitar.c2
1 files changed, 2 insertions, 0 deletions
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"));