~sircmpwn/himitsu-devel

himitsu: himitsud: Fix some minor memory leaks v1 APPLIED

Alexey Yerin: 1
 himitsud: Fix some minor memory leaks

 2 files changed, 2 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/himitsu-devel/patches/41927/mbox | git am -3
Learn more about email & git

[PATCH himitsu] himitsud: Fix some minor memory leaks Export this patch

---
 cmd/himitsud/cmd.ha | 1 +
 config/conf.ha      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/cmd/himitsud/cmd.ha b/cmd/himitsud/cmd.ha
index 6bb9ec0..ce17c7d 100644
--- a/cmd/himitsud/cmd.ha
+++ b/cmd/himitsud/cmd.ha
@@ -239,6 +239,7 @@ fn exec_query(serv: *server, client: *client, args: []str) (void | cmderror) = {
	};

	let buf = bufio::dynamic(io::mode::WRITE);
	defer io::close(&buf)!;
	for (let i = 0z; i < len(matches); i += 1) {
		fmt::fprint(&buf, "key ")?;
		secstore::write(serv.store, &buf, matches[i], decrypt)?;
diff --git a/config/conf.ha b/config/conf.ha
index 2fdf749..f8c9434 100644
--- a/config/conf.ha
+++ b/config/conf.ha
@@ -40,6 +40,7 @@ export fn load() (config | error) = {
	let conf = config { ... };

	const scanner = ini::scan(file);
	defer ini::finish(&scanner);
	for (true) {
		const entry = match (ini::next(&scanner)?) {
		case let entry: ini::entry =>
-- 
2.41.0
Thanks!

To https://git.sr.ht/~sircmpwn/himitsu
   734a34b..  master -> master