diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-17 11:06:33 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-17 11:30:07 +1100 |
commit | f401930546dc719a9abd5a4b28315388a247dfc6 (patch) | |
tree | 0ee2741c952b68150118d965be291a1291199955 /source4 | |
parent | deed2a935b0ebd615929e21ec423204d44ada067 (diff) | |
download | samba-f401930546dc719a9abd5a4b28315388a247dfc6.tar.gz samba-f401930546dc719a9abd5a4b28315388a247dfc6.tar.bz2 samba-f401930546dc719a9abd5a4b28315388a247dfc6.zip |
s4-loadparm: fixed a memory leak in handle_realm()
we need to free the lowercase and uppercase varients
Diffstat (limited to 'source4')
-rw-r--r-- | source4/param/loadparm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 09d4f394d3..e7caf66004 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -1458,6 +1458,9 @@ static bool handle_realm(struct loadparm_context *lp_ctx, { string_set(lp_ctx, ptr, pszParmValue); + talloc_free(lp_ctx->globals->szRealm_upper); + talloc_free(lp_ctx->globals->szRealm_lower); + lp_ctx->globals->szRealm_upper = strupper_talloc(lp_ctx, pszParmValue); lp_ctx->globals->szRealm_lower = strlower_talloc(lp_ctx, pszParmValue); |