summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-19 13:06:14 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-19 13:06:14 +0200
commitf0c4829e827210e6f58885994e18f77f9afc3b8c (patch)
treee3dc275e48331b89add00fddeae2d89d1dc7b93d /source3/lib
parent58b4efc9b49c1cc366303a306639a3fc9321dcfe (diff)
downloadsamba-f0c4829e827210e6f58885994e18f77f9afc3b8c.tar.gz
samba-f0c4829e827210e6f58885994e18f77f9afc3b8c.tar.bz2
samba-f0c4829e827210e6f58885994e18f77f9afc3b8c.zip
Remove silly safe_free() function which is a wrapper around SAFE_FREE().
Since it's a function it just sets the local pointer to NULL and basically is an equivalent to free(). It also claims it's being used for callbacks but isn't used that way anywhere.
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 92b818b0aa..820cf376be 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1228,17 +1228,6 @@ void add_to_large_array(TALLOC_CTX *mem_ctx, size_t element_size,
}
/****************************************************************************
- Free memory, checks for NULL.
- Use directly SAFE_FREE()
- Exists only because we need to pass a function pointer somewhere --SSS
-****************************************************************************/
-
-void safe_free(void *p)
-{
- SAFE_FREE(p);
-}
-
-/****************************************************************************
Get my own name and IP.
****************************************************************************/