diff options
author | Drew DeVault <[email protected]> | 2015-08-08 17:44:51 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-08 17:44:51 -0400 |
commit | 148f59f3a670a7008bc6c2bc07712fd58b1f6e69 (patch) | |
tree | 7feeaaac853eb847a49e583882de5be50b1c737b /sway/list.c | |
parent | 0427fddb5a919ae6b3a4205e057ae36133bfbc47 (diff) |
Refactor in-memory tree
Diffstat (limited to 'sway/list.c')
-rw-r--r-- | sway/list.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |