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

#include <stdlib.h>

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