diff options
author | Volker Lendecke <vl@samba.org> | 2008-02-04 20:57:35 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-02-04 20:57:49 +0100 |
commit | 2762b9a97582b9b28fd5985ba8e3d0299126820e (patch) | |
tree | bcaa02c53a19e332ac20c41377e4951caed8d4a9 /source3/web | |
parent | 3955801298bbcf69afe01c212d5e8ac9812a5dcf (diff) | |
download | samba-2762b9a97582b9b28fd5985ba8e3d0299126820e.tar.gz samba-2762b9a97582b9b28fd5985ba8e3d0299126820e.tar.bz2 samba-2762b9a97582b9b28fd5985ba8e3d0299126820e.zip |
Always pass a TALLOC_CTX to str_list_make and str_list_copy
(This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/neg_lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/neg_lang.c b/source3/web/neg_lang.c index bb481306e7..82411000cd 100644 --- a/source3/web/neg_lang.c +++ b/source3/web/neg_lang.c @@ -74,7 +74,7 @@ void web_set_lang(const char *lang_string) int lang_num, i; /* build the lang list */ - lang_list = str_list_make(lang_string, ", \t\r\n"); + lang_list = str_list_make(talloc_tos(), lang_string, ", \t\r\n"); if (!lang_list) return; /* sort the list by priority */ @@ -100,7 +100,7 @@ void web_set_lang(const char *lang_string) } pl[i].string = SMB_STRDUP(lang_list[i]); } - str_list_free(&lang_list); + TALLOC_FREE(lang_list); qsort(pl, lang_num, sizeof(struct pri_list), &qsort_cmp_list); |