From 148f59f3a670a7008bc6c2bc07712fd58b1f6e69 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 8 Aug 2015 17:44:51 -0400 Subject: Refactor in-memory tree --- sway/list.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway/list.c') diff --git a/sway/list.c b/sway/list.c index 120cfbcd..82d6c144 100644 --- a/sway/list.c +++ b/sway/list.c @@ -12,6 +12,9 @@ list_t *create_list() { } void list_free(list_t *list) { + if (list == NULL) { + return; + } free(list->items); free(list); } -- cgit v1.2.3-54-g00ecf