summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-12 17:24:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:19 -0500
commit1c66bcef8de15efaaf329c3fa3e73549b067036b (patch)
tree4b50dd91ef4a47cf407fc45c47e8a4bd6a4b4329
parent784cc042cb245786516333ae53cfde8fc9502a23 (diff)
downloadsamba-1c66bcef8de15efaaf329c3fa3e73549b067036b.tar.gz
samba-1c66bcef8de15efaaf329c3fa3e73549b067036b.tar.bz2
samba-1c66bcef8de15efaaf329c3fa3e73549b067036b.zip
r14242: Fix Coverity bug # 82
(This used to be commit 9f645e996279be74aaeebcbecbfa07adce49ec7c)
-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 9ddb92d3df..020c11bf62 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -523,6 +523,8 @@ static BOOL ensurepath(char *fname)
if ((partpath == NULL) || (ffname == NULL)){
DEBUG(0, ("Out of memory in ensurepath: %s\n", fname));
+ SAFE_FREE(partpath);
+ SAFE_FREE(ffname);
return(False);
}