X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=src%2Fcommands_parser.c;fp=src%2Fcommands_parser.c;h=4299c008335570ced9c8daebc12bdaa1cefd74e9;hp=98f0665907dd36d759abebd4a55b09024a2f55c6;hb=1847938d4eeba98260cc79ca45a11a134274c2ea;hpb=c54f5008395b10c046f380cc3069ff779e5d2877 diff --git a/src/commands_parser.c b/src/commands_parser.c index 98f06659..4299c008 100644 --- a/src/commands_parser.c +++ b/src/commands_parser.c @@ -157,7 +157,7 @@ static long get_long(const char *identifier) { // TODO move to a common util static void clear_stack(void) { for (int c = 0; c < 10; c++) { - if (stack[c].type == STACK_STR && stack[c].val.str != NULL) + if (stack[c].type == STACK_STR) free(stack[c].val.str); stack[c].identifier = NULL; stack[c].val.str = NULL;