Add caveat to docs about bufferevent_free() with data in outbuf

Based on libevent-users thread wtih Alexander Klauer
This commit is contained in:
Nick Mathewson 2012-05-14 10:58:01 -04:00
parent 371efebdc3
commit 6fab9eef8f

View File

@ -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);