dwlb

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 037e3be013edf0e63b3ff653f3bba1ec3cfb715a
parent 023ce014e7b17087b7ec4fbba55f1ae6e34052fe
Author: kolunmi <kolunmi@tutanota.com>
Date:   Wed, 22 Feb 2023 11:17:03 -0700

quick fix

Diffstat:
Mdwlb.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dwlb.c b/dwlb.c @@ -1590,8 +1590,11 @@ main(int argc, char **argv) int v; if ((v = atoi(argv[i])) <= 0 || i + v >= argc) DIE("-tags: invalid arguments"); - if (tags) + if (tags) { + for (uint32_t j = 0; j < tags_l; j++) + free(tags[j]); free(tags); + } if (!(tags = malloc(v * sizeof(char *)))) EDIE("malloc"); for (int j = 0; j < v; j++)