summaryrefslogtreecommitdiffstats
path: root/source/client/clitar.c
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2006-03-10 04:18:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:14 -0500
commit33a1e26114d7dfdfb72e393efa399454a588e11e (patch)
tree3e8281b993818d060d1ee27eb6ca6dc27a1a28c7 /source/client/clitar.c
parent2ec51635ae7ba448f18c4c1342a5fd2adb1ec869 (diff)
downloadsamba-33a1e26114d7dfdfb72e393efa399454a588e11e.tar.gz
samba-33a1e26114d7dfdfb72e393efa399454a588e11e.tar.xz
samba-33a1e26114d7dfdfb72e393efa399454a588e11e.zip
r14128: Remove warning generated by coverity scan tool (missing SAFE_FREE in error path)
Diffstat (limited to 'source/client/clitar.c')
-rw-r--r--source/client/clitar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/client/clitar.c b/source/client/clitar.c
index ff9bc1f0fb7..9ddb92d3df0 100644
--- a/source/client/clitar.c
+++ b/source/client/clitar.c
@@ -1077,6 +1077,7 @@ static char *get_longfilename(file_info2 finfo)
while (left > 0) {
if (next_block(tarbuf, &buffer_p, tbufsiz) <= 0) {
DEBUG(0, ("Empty file, short tar file, or read error: %s\n", strerror(errno)));
+ SAFE_FREE(longname);
return(NULL);
}