Introduction
Introduction Statistics Contact Development Disclaimer Help
free data (order was wrong) and no need to check for free(NULL) - teed - A mult…
git clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d…
Log
Files
Refs
Tags
README
LICENSE
---
commit 2a6e3d8d898be6ab1a5ac16b3d288ddef0bc3089
parent 7ea6a417f78562629bd6f579dd593d44a5372acb
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 14 Aug 2023 15:09:23 +0200
free data (order was wrong) and no need to check for free(NULL)
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M teed.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/teed.c b/teed.c
@@ -56,10 +56,8 @@ llist_free1(llist *l)
{
if (l == NULL)
return;
- if (l->data != NULL) {
- l->data = NULL;
- free(l->data);
- }
+ free(l->data);
+ l->data = NULL;
l->next = NULL;
l->prev = NULL;
free(l);
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.