summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-12 11:00:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:19 -0500
commit6a8432833bb073c7fa91f9f4de1fe7a5cd8d0cec (patch)
tree1bb046bb12210c7c2eac1c6882f7ca159e8e65d5 /source3
parent21db43ab55ff80a7c0fd208deedfb7320cfea20e (diff)
downloadsamba-6a8432833bb073c7fa91f9f4de1fe7a5cd8d0cec.tar.gz
samba-6a8432833bb073c7fa91f9f4de1fe7a5cd8d0cec.tar.bz2
samba-6a8432833bb073c7fa91f9f4de1fe7a5cd8d0cec.zip
r14236: Fix Coverity bug # 90
(This used to be commit 019dff53f906a6eb7961a95089bff12361e31e57)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/libsmbclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 75b2b37c06..6b4ae9f4b7 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -1070,6 +1070,7 @@ smbc_open_ctx(SMBCCTX *context,
if (!cli_resolve_path( "", &srv->cli, path, &targetcli, targetpath))
{
d_printf("Could not resolve %s\n", path);
+ SAFE_FREE(file);
return NULL;
}
/*d_printf(">>>open: resolved %s as %s\n", path, targetpath);*/