diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-01 15:10:05 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-01 15:10:05 +0000 |
commit | 100ce6973a66257f35c13703444cd4f93d7316a4 (patch) | |
tree | 1eb2b50d44801b0f850af7d045a1e93d3355d869 /usr.sbin | |
parent | 6b6c97ebfcc921d74e18daf919d008bbf7be3e08 (diff) |
namespace_new() leaks `ns' on error path.
from zinovik@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ldapd/namespace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldapd/namespace.c b/usr.sbin/ldapd/namespace.c index c8f9c88c839..e6e5aa2302d 100644 --- a/usr.sbin/ldapd/namespace.c +++ b/usr.sbin/ldapd/namespace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: namespace.c,v 1.1 2010/05/31 17:36:31 martinh Exp $ */ +/* $OpenBSD: namespace.c,v 1.2 2010/06/01 15:10:04 martinh Exp $ */ /* * Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se> @@ -46,6 +46,7 @@ namespace_new(const char *suffix) ns->sync = 1; if (ns->suffix == NULL) { free(ns->suffix); + free(ns); return NULL; } TAILQ_INIT(&ns->indices); |