summaryrefslogtreecommitdiff
path: root/lib/util/memory.h
AgeCommit message (Collapse)AuthorFilesLines
2025-11-11Replace memset_s() with memset_explicit()Andreas Schneider1-7/+9
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2022-08-26lib:util: Add BURN_FREE() and BURN_FREE_STR()Pavel Filipenský1-0/+27
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2019-04-30lib:util: Sync memory.h with replace.hAndreas Schneider1-0/+5
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-02-14lib:util: Move discard_const(_p) to own header for libndr.hAndreas Schneider1-27/+0
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13778 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2018-12-20lib:util: Sync memory.h with replace.hAndreas Schneider1-4/+8
We can't remove memory.h as this is a public header file. So we need to duplicate them from replace.h Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-20lib:util: Cleanup comments in memory.hAndreas Schneider1-18/+20
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2010-08-28lib/util: remove implicit discard_const_p() from SAFE_FREE()Stefan Metzmacher1-1/+1
This should fix a lot of warnings on IRIX. If callers know what they're doing they can use discard_const_p() on their own. metze
2008-10-20Move discard_const hack to memory.hso it can be used by Samba 3.Jelmer Vernooij1-0/+25
2008-10-18Add extra argument free_on_fail to realloc_array() in Samba 4, as used by ↵Jelmer Vernooij1-8/+0
Samba 3.
2008-10-18Use the new memory macro file from Samba 3.Jelmer Vernooij1-0/+8
2008-10-18Move some of the memory utility macros to a separate header (for now).Jelmer Vernooij1-0/+93