diff options
Diffstat (limited to 'lib/pbdrv/pb-buf.c')
-rw-r--r-- | lib/pbdrv/pb-buf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/pbdrv/pb-buf.c b/lib/pbdrv/pb-buf.c new file mode 100644 index 0000000..673040f --- /dev/null +++ b/lib/pbdrv/pb-buf.c @@ -0,0 +1,10 @@ +#include "pb-buf.h" + +#include <stdlib.h> + +void pbdrv_buf_free(pbdrv_buf_t * buf) { + if (buf->data == NULL) return; + free(buf->data); + buf->data = NULL; +} + |