1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-17 06:24:12 -04:00

[exmode] go out instead of return to free strings

This commit is contained in:
Witold Filipczyk 2022-11-16 09:00:17 +01:00
parent 2688fb83eb
commit f85b22d9ad

View File

@ -135,7 +135,9 @@ try_exmode_exec(struct session *ses, const char *val)
while (*command == ':') command++; while (*command == ':') command++;
if (!*command) return; if (!*command) {
goto out;
}
skip_nonspace(args); skip_nonspace(args);
if (*args) *args++ = 0; if (*args) *args++ = 0;
@ -144,6 +146,7 @@ try_exmode_exec(struct session *ses, const char *val)
if (exmode_handlers[i](ses, command, args)) if (exmode_handlers[i](ses, command, args))
break; break;
} }
out:
done_string(&inp); done_string(&inp);
done_string(&res); done_string(&res);
} }