diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/samba3/group.c | 2 | ||||
-rw-r--r-- | source4/lib/util/util.c | 13 |
2 files changed, 1 insertions, 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. **/ |