[cvslog] (2005-11-26 16:44:41 UTC) Module eggdrop1.9: Change committed!

cvslog cvs at tsss.org
Sat Nov 26 10:44:41 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.9
Commit time: 2005-11-26 16:44:41 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     lib/eggdrop/users.c

Log message:

Eliminate extra free() for keys of hash table

---------------------- diff included ----------------------
Index: eggdrop1.9/lib/eggdrop/users.c
diff -u eggdrop1.9/lib/eggdrop/users.c:1.46 eggdrop1.9/lib/eggdrop/users.c:1.47
--- eggdrop1.9/lib/eggdrop/users.c:1.46	Fri Jun 24 14:00:57 2005
+++ eggdrop1.9/lib/eggdrop/users.c	Sat Nov 26 10:44:30 2005
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: users.c,v 1.46 2005/06/24 19:00:57 darko Exp $";
+static const char rcsid[] = "$Id: users.c,v 1.47 2005/11/26 16:44:30 stdarg Exp $";
 #endif
 
 #include <eggdrop/eggdrop.h>
@@ -461,7 +461,6 @@
 	putlog(LOG_MISC, "*", "user_rand_cleanup: deleting %d entries from cache", info.nentries);
 	for (i = 0; i < info.nentries; i++) {
 		hash_table_remove(irchost_cache_ht, info.entries[i], NULL);
-		free((void *)info.entries[i]);
 	}
 	if (info.entries) free(info.entries);
 	return(0);
----------------------- End of diff -----------------------



More information about the Changes mailing list