summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-12 17:48:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:20 -0500
commit0837f6b584aeafe25c2c746b1cd085bf70ca5533 (patch)
tree72e251dfaefbe96e1adf959d71de51d934dad0ec
parent8790a2e25789bab514f8372d1b048e11fb0bae8b (diff)
downloadsamba-0837f6b584aeafe25c2c746b1cd085bf70ca5533.tar.gz
samba-0837f6b584aeafe25c2c746b1cd085bf70ca5533.tar.bz2
samba-0837f6b584aeafe25c2c746b1cd085bf70ca5533.zip
r14246: Fix Coverity bug # 85
(This used to be commit ebc21336d80c5d417b309d4f9c22c074c324e123)
-rw-r--r--source3/client/clitar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 020c11bf62..90d06cc94e 100644
--- a/source3/client/clitar.c
+++ b/source3/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"));