From: Matthew Fernandez Date: Wed, 24 Mar 2021 03:47:09 +0000 (-0700) Subject: RTreeLeafListFree: push definition of tlp closer to its use X-Git-Tag: 2.47.1~21^2~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5bfe2bb2e92e68cab19961c37d5a119ff74edcd;p=graphviz RTreeLeafListFree: push definition of tlp closer to its use --- diff --git a/lib/label/index.c b/lib/label/index.c index 43e631bf1..d05cddc40 100644 --- a/lib/label/index.c +++ b/lib/label/index.c @@ -39,9 +39,8 @@ LeafList_t *RTreeLeafListAdd(LeafList_t * llp, Leaf_t * lp) void RTreeLeafListFree(LeafList_t * llp) { - LeafList_t *tlp; while (llp->next) { - tlp = llp->next; + LeafList_t *tlp = llp->next; free(llp); llp = tlp; }