~sircmpwn/hare

f86268c19270790d619b9c9f033d2ea2affaa083 — Sebastian 3 months ago 3b095c2
cmd/hare: fix memory leaks

Signed-off-by: Sebastian <sebastian@sebsite.pw>
2 files changed, 2 insertions(+), 2 deletions(-)

M cmd/hare/deps.ha
M cmd/haredoc/main.ha
M cmd/hare/deps.ha => cmd/hare/deps.ha +1 -1
@@ 26,7 26,7 @@ type link = struct {

fn deps(name: str, cmd: *getopt::command) (void | error) = {
	let tags = default_tags()?;
	defer free(tags);
	defer strings::freeall(tags);

	let build_dir: str = "";
	let goal = deps_fmt::TERM;

M cmd/haredoc/main.ha => cmd/haredoc/main.ha +1 -1
@@ 59,7 59,7 @@ fn doc(name: str, cmd: *getopt::command) (void | error) = {
	let template = true;
	let show_undocumented = false;
	let tags: []str = default_tags()?;
	defer free(tags);
	defer strings::freeall(tags);

	for (let i = 0z; i < len(cmd.opts); i += 1) {
		let opt = cmd.opts[i];