summaryrefslogtreecommitdiff
path: root/src/sp_list.c
diff options
context:
space:
mode:
authorblotus2017-10-30 11:01:24 +0100
committerGitHub2017-10-30 11:01:24 +0100
commit1476b0ddbab0748c332fd9ee7bed1ba9d1f35d96 (patch)
tree059ee585c9af2cf4e18ca66f448e1b7b143a1a3b /src/sp_list.c
parent9a0400bdbc7d4decb32fe8fa3960e9e77f9fe898 (diff)
parent1eb51a18ec06b3c8add77d876af0f5a599279c67 (diff)
Merge pull request #54 from arpd/43-free-at-shutdown
43 free at shutdown
Diffstat (limited to 'src/sp_list.c')
-rw-r--r--src/sp_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_list.c b/src/sp_list.c
index 112d822..c671f51 100644
--- a/src/sp_list.c
+++ b/src/sp_list.c
@@ -11,7 +11,7 @@ void sp_list_free(sp_node_t *node) {
11 } 11 }
12} 12}
13 13
14sp_node_t *sp_new_list() { 14sp_node_t *sp_list_new() {
15 sp_node_t *new = pecalloc(sizeof(*new), 1, 1); 15 sp_node_t *new = pecalloc(sizeof(*new), 1, 1);
16 new->next = new->data = new->head = NULL; 16 new->next = new->data = new->head = NULL;
17 return new; 17 return new;
@@ -52,4 +52,4 @@ void sp_list_prepend(sp_node_t *list, void *data) {
52 new->data = list->data; 52 new->data = list->data;
53 list->data = data; 53 list->data = data;
54 } 54 }
55} \ No newline at end of file 55}