From 6fab9eef8faca783f949da53fa4efa7590bd2ed3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 14 May 2012 10:58:01 -0400 Subject: [PATCH] Add caveat to docs about bufferevent_free() with data in outbuf Based on libevent-users thread wtih Alexander Klauer --- include/event2/bufferevent.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/event2/bufferevent.h b/include/event2/bufferevent.h index 467b4e32..9e65873f 100644 --- a/include/event2/bufferevent.h +++ b/include/event2/bufferevent.h @@ -277,6 +277,9 @@ int bufferevent_priority_set(struct bufferevent *bufev, int pri); /** Deallocate the storage associated with a bufferevent structure. + If there is pending data to write on the bufferevent, it probably won't be + flushed before the bufferevent is freed. + @param bufev the bufferevent structure to be freed. */ void bufferevent_free(struct bufferevent *bufev); -- 2.40.0