summaryrefslogtreecommitdiff
path: root/6/blob.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-27 14:50:30 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-27 14:51:19 -0700
commit46f0325e0e0d5e49b6bcf926e45449f3397eaa47 (patch)
treee23937d53c1f4cb665705f609ec4f4164848484b /6/blob.c
parent2bb2b35d3e99d90fdcb026c886c2fc20d805ef7f (diff)
downloadmc-46f0325e0e0d5e49b6bcf926e45449f3397eaa47.tar.gz
Fix a few minor issues post refactor.
- We should nop on free(NULL). - We shouldn't bother with the 'g' suffix on locals.
Diffstat (limited to '6/blob.c')
-rw-r--r--6/blob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/6/blob.c b/6/blob.c
index b9a4ae8..59a5dbf 100644
--- a/6/blob.c
+++ b/6/blob.c
@@ -75,6 +75,8 @@ void blobfree(Blob *b)
{
size_t i;
+ if (!b)
+ return;
switch (b->type) {
case Btref:
free(b->lbl);