ifree data (order was wrong) and no need to check for free(NULL) - teed - A multiplex relay tee(1) daemon. Err bitreich.org 70
hgit clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed URL:git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed bitreich.org 70
1Log /scm/teed/log.gph bitreich.org 70
1Files /scm/teed/files.gph bitreich.org 70
1Refs /scm/teed/refs.gph bitreich.org 70
1Tags /scm/teed/tag bitreich.org 70
1README /scm/teed/file/README.md.gph bitreich.org 70
1LICENSE /scm/teed/file/LICENSE.gph bitreich.org 70
i--- Err bitreich.org 70
1commit 2a6e3d8d898be6ab1a5ac16b3d288ddef0bc3089 /scm/teed/commit/2a6e3d8d898be6ab1a5ac16b3d288ddef0bc3089.gph bitreich.org 70
1parent 7ea6a417f78562629bd6f579dd593d44a5372acb /scm/teed/commit/7ea6a417f78562629bd6f579dd593d44a5372acb.gph bitreich.org 70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org> URL:mailto:hiltjo@codemadness.org bitreich.org 70
iDate: Mon, 14 Aug 2023 15:09:23 +0200 Err bitreich.org 70
i Err bitreich.org 70
ifree data (order was wrong) and no need to check for free(NULL) Err bitreich.org 70
i Err bitreich.org 70
iSigned-off-by: Christoph Lohmann <20h@r-36.net> Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M teed.c | 6 ++---- Err bitreich.org 70
i Err bitreich.org 70
i1 file changed, 2 insertions(+), 4 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/teed.c b/teed.c /scm/teed/file/teed.c.gph bitreich.org 70
i@@ -56,10 +56,8 @@ llist_free1(llist *l) Err bitreich.org 70
i { Err bitreich.org 70
i if (l == NULL) Err bitreich.org 70
i return; Err bitreich.org 70
i- if (l->data != NULL) { Err bitreich.org 70
i- l->data = NULL; Err bitreich.org 70
i- free(l->data); Err bitreich.org 70
i- } Err bitreich.org 70
i+ free(l->data); Err bitreich.org 70
i+ l->data = NULL; Err bitreich.org 70
i l->next = NULL; Err bitreich.org 70
i l->prev = NULL; Err bitreich.org 70
i free(l); Err bitreich.org 70
.
Response:
text/plain