mirror of
https://github.com/kolunmi/dwlb.git
synced 2025-10-28 02:34:34 +00:00
quick fix
This commit is contained in:
parent
023ce014e7
commit
037e3be013
5
dwlb.c
5
dwlb.c
@ -1590,8 +1590,11 @@ main(int argc, char **argv)
|
|||||||
int v;
|
int v;
|
||||||
if ((v = atoi(argv[i])) <= 0 || i + v >= argc)
|
if ((v = atoi(argv[i])) <= 0 || i + v >= argc)
|
||||||
DIE("-tags: invalid arguments");
|
DIE("-tags: invalid arguments");
|
||||||
if (tags)
|
if (tags) {
|
||||||
|
for (uint32_t j = 0; j < tags_l; j++)
|
||||||
|
free(tags[j]);
|
||||||
free(tags);
|
free(tags);
|
||||||
|
}
|
||||||
if (!(tags = malloc(v * sizeof(char *))))
|
if (!(tags = malloc(v * sizeof(char *))))
|
||||||
EDIE("malloc");
|
EDIE("malloc");
|
||||||
for (int j = 0; j < v; j++)
|
for (int j = 0; j < v; j++)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user