libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

commit af792ebe99c6301fb5b5436f856b9589ad0fd5ea
parent 719d805b28b9e34d5f5e83fcbdb0fbb41c20ec6d
Author: Laslo Hunhold <dev@frign.de>
Date:   Mon, 29 May 2023 22:21:57 +0200

Free generated mirror-LUT data structures to avoid memory leak

This is a technicality, but this satisfies the clang dynamic memory
analyzer.

Signed-off-by: Laslo Hunhold <dev@frign.de>

Diffstat:
Mgen/bidirectional.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/gen/bidirectional.c b/gen/bidirectional.c @@ -499,5 +499,10 @@ main(int argc, char *argv[]) mm_mirror.minorlen, get_value, comp_mirror.data); + free(comp_mirror.data); + free(comp_mirror.offset); + free(mm_mirror.major); + free(mm_mirror.minor); + return 0; }