diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-12 17:48:51 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2006-03-12 17:48:51 +0000 |
commit | 011c04ed2e4b5415b6d68412b7ba30c2480658a2 (patch) | |
tree | b35bae77e9930539d0efcf87d470316d601e0319 /source/client | |
parent | 6dd9b06e75126ae0922615e8c593a86a0b4ddf8a (diff) | |
download | samba-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.c | 2 |
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")); |