Function amqp_bytes_free

Synopsis

#include <librabbitmq/amqp.h>

void amqp_bytes_free(amqp_bytes_t bytes)

Description

Frees an amqp_bytes_t buffer

Frees a buffer allocated with amqp_bytes_malloc() or amqp_bytes_malloc_dup()

Calling amqp_bytes_free on buffers not allocated with one of those two functions will result in undefined behavior

Parameters:

[ in ] bytes - the buffer to free

See
amqp_bytes_malloc(), amqp_bytes_malloc_dup()
Since
v0.1

Mentioned in

Source

Lines 191-191 in librabbitmq/amqp_mem.c. Line 1024 in librabbitmq/amqp.h.

void amqp_bytes_free(amqp_bytes_t bytes) { free(bytes.bytes); }





Add Discussion as Guest

Log in to DocsForge