From 498e984690895987067743bb94ee83d49da7ecb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 26 Feb 2019 11:32:02 +0100 Subject: Fix memmory errors. --- linked_list.inc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linked_list.inc.h') diff --git a/linked_list.inc.h b/linked_list.inc.h index 499d4509..81974a9c 100644 --- a/linked_list.inc.h +++ b/linked_list.inc.h @@ -139,7 +139,7 @@ int EMPTY(LLIST(TYPE)) ( LLIST(TYPE)* llist ) { LLIST(TYPE)* RESOLVE(LLIST(TYPE)) (LLIST(TYPE)* dest, LLIST(TYPE)* new__) { if (dest == NULL) return new__; APPEND(LLIST(TYPE))(dest, new__); - // TODO free new__? + free(new__); return dest; } -- cgit v1.2.3