~sircmpwn/himitsu-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH himitsu] himitsud: Fix some minor memory leaks

Details
Message ID
<20230616193912.28342-1-yyp@disroot.org>
DKIM signature
missing
Download raw message
Patch: +2 -0
---
 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
Details
Message ID
<CTEPZTBO760X.YCOEE5D9KR4M@framework>
In-Reply-To
<20230616193912.28342-1-yyp@disroot.org> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To https://git.sr.ht/~sircmpwn/himitsu
   734a34b..  master -> master
Reply to thread Export thread (mbox)