diff options
Diffstat (limited to 'linked_list.inc.h')
-rw-r--r-- | linked_list.inc.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |