mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r16517: Get rid of pointless safe_free() (not SAFE_FREE()!) function.
(This used to be commit 6bc9149782
)
This commit is contained in:
parent
4bd40183af
commit
9bd4cfad47
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
**/
|
||||
|
Loading…
Reference in New Issue
Block a user