Add compress_buf_free function

dcc-encoders should be in change of allocate and free the structure
don't put internal assumptions (which functions are used for memory
management) in different files.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-06-03 16:22:08 +01:00
parent aed25d8407
commit fa4eb13f7b

View File

@ -63,6 +63,11 @@ struct RedCompressBuf {
RedCompressBuf *send_next;
};
static inline void compress_buf_free(RedCompressBuf *buf)
{
g_free(buf);
}
typedef struct GlzSharedDictionary {
RingItem base;
GlzEncDictContext *dict;