mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[exmode] go out instead of return to free strings
This commit is contained in:
parent
2688fb83eb
commit
f85b22d9ad
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user