From 9bd4cfad47b8b2e1e60a49478c92cf8490802a18 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 26 Jun 2006 11:29:48 +0000 Subject: r16517: Get rid of pointless safe_free() (not SAFE_FREE()!) function. (This used to be commit 6bc91497827a66af6d9adf26c689e9cc458d8ecf) --- source4/lib/samba3/group.c | 2 +- source4/lib/util/util.c | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/source4/lib/samba3/group.c b/source4/lib/samba3/group.c index 0860c36e1f..fcf015de68 100644 --- a/source4/lib/samba3/group.c +++ b/source4/lib/samba3/group.c @@ -72,7 +72,7 @@ NTSTATUS samba3_read_grouptdb(const char *file, TALLOC_CTX *ctx, struct samba3_g for (kbuf = tdb_firstkey(tdb); kbuf.dptr; - newkey = tdb_nextkey(tdb, kbuf), safe_free(kbuf.dptr), kbuf=newkey) { + newkey = tdb_nextkey(tdb, kbuf), free(kbuf.dptr), kbuf=newkey) { struct samba3_groupmapping map; const char *k = (const char *)kbuf.dptr; diff --git a/source4/lib/util/util.c b/source4/lib/util/util.c index 5948cd7ecb..33215a81fb 100644 --- a/source4/lib/util/util.c +++ b/source4/lib/util/util.c @@ -253,19 +253,6 @@ _PUBLIC_ void become_daemon(BOOL Fork) attach it to the logfile */ } - -/** - Free memory, checks for NULL. - Use directly SAFE_FREE() - Exists only because we need to pass a function pointer somewhere --SSS -**/ - -_PUBLIC_ void safe_free(void *p) -{ - SAFE_FREE(p); -} - - /** Get my own name, return in malloc'ed storage. **/ -- cgit