From a19be8473c3060c10c76c85d633dc546eabd447a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 5 Feb 2019 17:53:13 +0100 Subject: Fix most memmory problems. --- linked_list.inc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linked_list.inc.h') diff --git a/linked_list.inc.h b/linked_list.inc.h index 3710bc13..2622eb4b 100644 --- a/linked_list.inc.h +++ b/linked_list.inc.h @@ -19,6 +19,7 @@ FREE_F (LINK(TYPE)) { if (this->after != NULL) this->after->before = NULL; // TODO how much of value do I really wanna free? // Should I implement some form of shared pointer? + if (this->value != NULL) FFREE(TYPE, this->value); return 0; } -- cgit v1.2.3