summaryrefslogtreecommitdiffstats
path: root/src/bplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bplist.c')
-rw-r--r--src/bplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bplist.c b/src/bplist.c
index 91d5578..181c150 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -726,7 +726,7 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist)
for (i = 0; i < num_objects; i++) {
if (i == root_object) continue;
node_t* node = (node_t*)nodeslist[i];
- if (NODE_IS_ROOT(node)) {
+ if (node && NODE_IS_ROOT(node)) {
plist_free(node);
}
}