summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbjj <bjj>2002-08-16 03:00:44 (GMT)
committerbjj <bjj>2002-08-16 03:00:44 (GMT)
commita029671d4f49a1a9af8264a7c842ee2004ede25d (patch)
treec77461f2eea6af5690f90f56f45c69209c80d4d0
parentb5b48c078531caa3de9243399287bbf5118de04f (diff)
downloadmoo-a029671d4f49a1a9af8264a7c842ee2004ede25d.zip
moo-a029671d4f49a1a9af8264a7c842ee2004ede25d.tar.gz
moo-a029671d4f49a1a9af8264a7c842ee2004ede25d.tar.bz2
moo-a029671d4f49a1a9af8264a7c842ee2004ede25d.tar.xz
free cancelled timers with free_timer() instead of free() so they can
get re-used (typically there's only a handful) (harmless)
-rw-r--r--timers.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index f408d8f..ffe2839 100644
--- a/timers.c
+++ b/timers.c
@@ -253,7 +253,7 @@ cancel_timer(Timer_ID id)
stop_timers();
if (virtual_timer && virtual_timer->id == id) {
- free(virtual_timer);
+ free_timer(virtual_timer);
virtual_timer = 0;
found = 1;
} else {
@@ -263,7 +263,7 @@ cancel_timer(Timer_ID id)
*t = tt->next;
found = 1;
- free(tt);
+ free_timer(tt);
break;
}
t = &((*t)->next);
@@ -304,6 +304,10 @@ char rcsid_timers[] = "$Id$";
/*
* $Log$
+ * Revision 1.4 2002/08/16 03:00:44 bjj
+ * free cancelled timers with free_timer() instead of free() so they can
+ * get re-used (typically there's only a handful) (harmless)
+ *
* Revision 1.3 1998/12/14 13:19:09 nop
* Merge UNSAFE_OPTS (ref fixups); fix Log tag placement to fit CVS whims
*