[openssh-commits] [openssh] 01/02: upstream: Free the previously allocated msg buffer after writing it
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Nov 12 10:53:16 AEDT 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 4340dd43928dfe746cb7e75fe920b63c0d909a9a
Author: claudio at openbsd.org <claudio at openbsd.org>
Date: Tue Nov 10 07:46:20 2020 +0000
upstream: Free the previously allocated msg buffer after writing it
out. OK djm@
OpenBSD-Commit-ID: 18c055870fc75e4cb9f926c86c7543e2e21d7fa4
---
readpass.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/readpass.c b/readpass.c
index 78bca832..9c7476c1 100644
--- a/readpass.c
+++ b/readpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpass.c,v 1.67 2020/11/08 23:19:03 djm Exp $ */
+/* $OpenBSD: readpass.c,v 1.68 2020/11/10 07:46:20 claudio Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -312,6 +312,7 @@ notify_complete(struct notifier_ctx *ctx, const char *fmt, ...)
xvasprintf(&msg, fmt, args);
va_end(args);
writemsg(msg);
+ free(msg);
}
if (ctx == NULL || ctx->pid <= 0) {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list