]> source.dussan.org Git - rspamd.git/commitdiff
Cleanup callback's data for aio.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 13 Mar 2012 12:52:48 +0000 (16:52 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 13 Mar 2012 12:52:48 +0000 (16:52 +0400)
src/aio_event.c

index 9dd0df35a78a796b715119fcb3003439958ba69d..006d423fb981ba100df4d52b9fbbd6b0c1c5ccae 100644 (file)
@@ -218,6 +218,7 @@ rspamd_eventfdcb (gint fd, gshort what, gpointer ud)
                                ev_data = (struct io_cbdata *) (uintptr_t) event[i].data;
                                /* Call this callback */
                                ev_data->cb (ev_data->fd, event[i].res, ev_data->len, ev_data->buf, ev_data->ud);
+                               g_slice_free1 (sizeof (struct io_cbdata), ev_data);
                        }
                }
                else if (done == 0) {