Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm CID 745411:...
details: https://anonhg.NetBSD.org/src/rev/86c43f6c8e10
branches: trunk
changeset: 329161:86c43f6c8e10
user: christos <christos%NetBSD.org@localhost>
date: Mon May 12 15:27:36 2014 +0000
description:
CID 745411: Fix memory leak
diffstat:
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 29550042ce0a -r 86c43f6c8e10 crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c
--- a/crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c Mon May 12 15:25:49 2014 +0000
+++ b/crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c Mon May 12 15:27:36 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: creds.c,v 1.1.1.2 2014/04/24 12:45:29 pettai Exp $ */
+/* $NetBSD: creds.c,v 1.2 2014/05/12 15:27:36 christos Exp $ */
/*
* Copyright (c) 2006 Kungliga Tekniska Högskolan
@@ -62,8 +62,11 @@
n->domain = strdup(c->domain);
}
if (n == NULL || n->user == NULL || n->domain == NULL) {
- if (n)
+ if (n) {
free(n->user);
+ free(n->domain);
+ free(n);
+ }
*minor_status = ENOMEM;
return GSS_S_FAILURE;
}
Home |
Main Index |
Thread Index |
Old Index