summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
authordjm <djm>2006-03-18 12:04:49 +0000
committerdjm <djm>2006-03-18 12:04:49 +0000
commitc6a11055cc684feede08aa9e50fb8c2f9d74a33e (patch)
tree1b98d47a2ec4a43c4dd0044e6ea24fe64f134402 /auth-pam.c
parent2519bf979ba797888d9cb01ea14bc3f44dc84994 (diff)
downloadopenssh-c6a11055cc684feede08aa9e50fb8c2f9d74a33e.tar.gz
- (djm) [auth-pam.c] Fix memleak in error path, from Coverity via
elad AT NetBSD.org
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 49cf3236..2d975c39 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -47,7 +47,7 @@
/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
#include "includes.h"
-RCSID("$Id: auth-pam.c,v 1.129 2006/03/15 03:42:55 djm Exp $");
+RCSID("$Id: auth-pam.c,v 1.130 2006/03/18 12:04:49 djm Exp $");
#include <sys/types.h>
#include <sys/stat.h>
@@ -729,6 +729,7 @@ sshpam_query(void *ctx, char **name, char **info,
*num = 0;
**echo_on = 0;
ctxt->pam_done = -1;
+ xfree(msg);
return 0;
}
/* FALLTHROUGH */