diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-12 17:48:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:20 -0500 |
commit | 0837f6b584aeafe25c2c746b1cd085bf70ca5533 (patch) | |
tree | 72e251dfaefbe96e1adf959d71de51d934dad0ec /source3 | |
parent | 8790a2e25789bab514f8372d1b048e11fb0bae8b (diff) | |
download | samba-0837f6b584aeafe25c2c746b1cd085bf70ca5533.tar.gz samba-0837f6b584aeafe25c2c746b1cd085bf70ca5533.tar.bz2 samba-0837f6b584aeafe25c2c746b1cd085bf70ca5533.zip |
r14246: Fix Coverity bug # 85
(This used to be commit ebc21336d80c5d417b309d4f9c22c074c324e123)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/clitar.c | 2 |
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")); |