diff src/lib/ioloop-notify-dn.c @ 3879:928229f8b3e6 HEAD

deinit, unref, destroy, close, free, etc. functions now take a pointer to their data pointer, and set it to NULL. This makes double-frees less likely to cause security holes.
author Timo Sirainen <tss@iki.fi>
date Sat, 14 Jan 2006 20:47:20 +0200
parents 55df57c028d4
children ef5595d6ddec
line wrap: on
line diff
--- a/src/lib/ioloop-notify-dn.c	Sat Jan 14 19:23:22 2006 +0200
+++ b/src/lib/ioloop-notify-dn.c	Sat Jan 14 20:47:20 2006 +0200
@@ -143,10 +143,8 @@
 
 	p_free(ioloop->pool, io);
 
-	if (ioloop->notifys == NULL) {
-		io_remove(ctx->event_io);
-		ctx->event_io = NULL;
-	}
+	if (ioloop->notifys == NULL)
+		io_remove(&ctx->event_io);
 }
 
 void io_loop_notify_handler_init(struct ioloop *ioloop)