diff options
-rw-r--r-- | source3/registry/reg_frontend.c | 1 |
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; } |