From 460e7175eb42fb5bae92ade524fac6ae0814c849 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 18 Mar 2007 01:33:02 +0000 Subject: [PATCH] Avoid extra decrements of links.inuse. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1781 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/list.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 908bc5f..034218d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-17 Michael Poole + + * ircd/list.c (free_link): Only decrement the in-use count of + links if we free a link. + 2007-03-17 Kevin L. Mitchell * ircd/s_err.c: update replies to handle new fields in diff --git a/ircd/list.c b/ircd/list.c index 1f75ab9..d304e16 100644 --- a/ircd/list.c +++ b/ircd/list.c @@ -448,8 +448,8 @@ void free_link(struct SLink* lp) if (lp) { lp->next = slinkFreeList; slinkFreeList = lp; + links.inuse--; } - links.inuse--; } /** Add an element to a doubly linked list. -- 2.20.1