quick fix

This commit is contained in:
kolunmi 2023-02-22 11:17:03 -07:00
parent 023ce014e7
commit 037e3be013

5
dwlb.c
View File

@ -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++)