1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/web
Michael Adam 9644b6cb50 Add a talloc context parameter to current_timestring() to fix memleaks.
current_timestring used to return a string talloced to talloc_tos().
When called by DEBUG from a TALLOC_FREE, this produced messages
"no talloc stackframe around, leaking memory". For example when
used from net conf.

This also adds a temporary talloc context to alloc_sub_basic().
For this purpose, the exit strategy is slightly altered: a common
exit point is used for success and failure.

Michael
(This used to be commit 16b5800d4e)
2008-03-28 16:34:51 +01:00
..
cgi.c strtok -> strtok_r 2008-01-23 15:08:04 +01:00
diagnose.c This is a large patch (sorry). Migrate from struct in_addr 2007-10-24 14:16:54 -07:00
neg_lang.c Always pass a TALLOC_CTX to str_list_make and str_list_copy 2008-02-04 20:57:49 +01:00
startstop.c Remove the char[1024] strings from dynconfig. Replace 2007-12-10 11:30:37 -08:00
statuspage.c Tiny simplifications 2007-12-10 12:22:01 +01:00
swat.c Add a talloc context parameter to current_timestring() to fix memleaks. 2008-03-28 16:34:51 +01:00