]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix double free().
authorGunnar Beutner <redacted>
Wed, 17 Jul 2013 21:06:44 +0000 (23:06 +0200)
committerGunnar Beutner <redacted>
Wed, 17 Jul 2013 21:06:44 +0000 (23:06 +0200)
--HG--
branch : shroudtrusts

glines/glines_buf.c

index b76ad178ee9f15c0964388c67b70ebeb706638b3..27ab9940af31855c323b796302ae29bf75a97e15 100644 (file)
@@ -283,6 +283,9 @@ void glinebufcommit(glinebuf *gbuf, int propagate) {
     }
   }
 
+  /* We've moved all glines to the gline list. Clear glines link in the glinebuf. */  
+  gbuf->glines = NULL;
+
   if (propagate && gbl->glines) {
     glinebuflogoffset++;