summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-09 08:19:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:59 -0500
commit0e4ab9a5ac8e7a82b7cecd5978313c06fb77e364 (patch)
tree874c3bc3e25e9ce603fa8809fdab13500736754f /source3
parentdbac39f74ebd6a906b6c2b83e6f0a406788f5620 (diff)
downloadsamba-0e4ab9a5ac8e7a82b7cecd5978313c06fb77e364.tar.gz
samba-0e4ab9a5ac8e7a82b7cecd5978313c06fb77e364.tar.bz2
samba-0e4ab9a5ac8e7a82b7cecd5978313c06fb77e364.zip
r20626: Fix a memleak found by the IBM checker -- not on 3.0.24
(This used to be commit 9d0a789e32e6a6501421edb25bc8197c9e06846d)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_frontend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/registry/reg_frontend.c b/source3/registry/reg_frontend.c
index 36aacaceba..2ec532dcdc 100644
--- a/source3/registry/reg_frontend.c
+++ b/source3/registry/reg_frontend.c
@@ -532,6 +532,7 @@ WERROR reg_delete_path(const struct nt_user_token *token,
p = strchr(path, '\\');
if ((p == NULL) || (p[1] == '\0')) {
+ SAFE_FREE(path);
return WERR_INVALID_PARAM;
}