diff options
Diffstat (limited to 'wsutil/buffer.c')
-rw-r--r-- | wsutil/buffer.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wsutil/buffer.c b/wsutil/buffer.c index 7d9d44b1b4..5108ee8905 100644 --- a/wsutil/buffer.c +++ b/wsutil/buffer.c @@ -178,6 +178,16 @@ ws_buffer_append_buffer(Buffer* buffer, Buffer* src_buffer) } #endif +void +ws_buffer_cleanup(void) +{ + if (small_buffers) { + g_ptr_array_set_free_func(small_buffers, g_free); + g_ptr_array_free(small_buffers, TRUE); + small_buffers = NULL; + } +} + /* * Editor modelines - http://www.wireshark.org/tools/modelines.html * |