Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/libsaslc/dist/src Fixed memory leak (CID...
details: https://anonhg.NetBSD.org/src/rev/a71d2a1d5163
branches: trunk
changeset: 359121:a71d2a1d5163
user: shm <shm%NetBSD.org@localhost>
date: Tue Jan 30 15:28:39 2018 +0000
description:
Fixed memory leak (CID: 977744)
diffstat:
crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 939c7748860f -r a71d2a1d5163 crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c
--- a/crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c Tue Jan 30 14:49:25 2018 +0000
+++ b/crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c Tue Jan 30 15:28:39 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mech_digestmd5.c,v 1.12 2018/01/30 13:11:28 shm Exp $ */
+/* $NetBSD: mech_digestmd5.c,v 1.13 2018/01/30 15:28:39 shm Exp $ */
/* Copyright (c) 2010 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: mech_digestmd5.c,v 1.12 2018/01/30 13:11:28 shm Exp $");
+__RCSID("$NetBSD: mech_digestmd5.c,v 1.13 2018/01/30 15:28:39 shm Exp $");
#include <sys/param.h>
@@ -860,7 +860,7 @@
{
const char *user_realms;
list_t *l;
- char *p;
+ char *p = NULL;
/*****************************************************************/
/* The realm containing the user's account. This directive is */
@@ -926,6 +926,7 @@
return p;
}
use_1st_realm:
+ free(p);
if ((p = strdup(realms->value)) == NULL)
goto nomem;
return p;
Home |
Main Index |
Thread Index |
Old Index