diff options
-rw-r--r-- | src/bitvec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bitvec.c b/src/bitvec.c index ef8621c5..5130705f 100644 --- a/src/bitvec.c +++ b/src/bitvec.c @@ -418,6 +418,8 @@ struct bitvec *bitvec_alloc(unsigned int size, TALLOC_CTX *ctx) * \param[in] bit vector to free */ void bitvec_free(struct bitvec *bv) { + if (bv == NULL) + return; talloc_free(bv->data); talloc_free(bv); } |