From 76914233fefa2db334b0f281767d243d063a2b73 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Fri, 14 Mar 2014 12:02:29 -0400 Subject: Fix a couple of memory leaks (static analysis) --- src/back-sch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/back-sch.c b/src/back-sch.c index dde363c..4ac1dd1 100644 --- a/src/back-sch.c +++ b/src/back-sch.c @@ -1,5 +1,5 @@ /* - * Copyright 2008,2009,2010,2011,2012 Red Hat, Inc. + * Copyright 2008,2009,2010,2011,2012,2013,2014 Red Hat, Inc. * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -232,6 +232,7 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e, } else { ret.check_nsswitch = SCH_NSSWITCH_NONE; } + free(check_nsswitch); } else { ret.check_nsswitch = SCH_NSSWITCH_NONE; } @@ -247,6 +248,7 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e, if ((errno != 0) || ((strp != NULL) && (*strp != '\0'))) { ret.nsswitch_min_id = 1000; } + free(nsswitch_min_id); } if (ret.check_nsswitch != SCH_NSSWITCH_NONE) { -- cgit