diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 17:53:13 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 18:16:19 +0100 |
commit | a19be8473c3060c10c76c85d633dc546eabd447a (patch) | |
tree | fea97d5207a7c0b5783efc979ebbf9317ccbaba7 /linked_list.inc.h | |
parent | Fix append. (diff) | |
download | calp-a19be8473c3060c10c76c85d633dc546eabd447a.tar.gz calp-a19be8473c3060c10c76c85d633dc546eabd447a.tar.xz |
Fix most memmory problems.
Diffstat (limited to '')
-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; } |