svn commit: samba r16517 - in branches/SAMBA_4_0/source/lib: samba3
util
jelmer at samba.org
jelmer at samba.org
Mon Jun 26 11:29:49 GMT 2006
Author: jelmer
Date: 2006-06-26 11:29:48 +0000 (Mon, 26 Jun 2006)
New Revision: 16517
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16517
Log:
Get rid of pointless safe_free() (not SAFE_FREE()!) function.
Modified:
branches/SAMBA_4_0/source/lib/samba3/group.c
branches/SAMBA_4_0/source/lib/util/util.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/samba3/group.c
===================================================================
--- branches/SAMBA_4_0/source/lib/samba3/group.c 2006-06-26 11:23:06 UTC (rev 16516)
+++ branches/SAMBA_4_0/source/lib/samba3/group.c 2006-06-26 11:29:48 UTC (rev 16517)
@@ -72,7 +72,7 @@
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;
Modified: branches/SAMBA_4_0/source/lib/util/util.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/util.c 2006-06-26 11:23:06 UTC (rev 16516)
+++ branches/SAMBA_4_0/source/lib/util/util.c 2006-06-26 11:29:48 UTC (rev 16517)
@@ -253,20 +253,7 @@
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.
**/
More information about the samba-cvs
mailing list