aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-buf.c
blob: 3d6cb8a83e94ec96423e1dde555f7ccc80d58ad0 (plain)
1
2
3
4
5
6
7
8
9
#include "pb-buf.h"
#include "pb-mem.h"

void pb_buf_free(pb_buf_t * buf) {
	if (buf->data == NULL) return;
	pb_free(buf->data);
	buf->data = NULL;
}