diff options
author | Nalin Dahyabhai <nalin@dahyabhai.net> | 2014-03-14 12:02:29 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@dahyabhai.net> | 2014-03-14 12:26:01 -0400 |
commit | 76914233fefa2db334b0f281767d243d063a2b73 (patch) | |
tree | 3e18d8159d8f13d9eddad3c1f192a10f983a1f79 | |
parent | 39f34e126a2cf13e60e59a1f06fa731348a7e2d0 (diff) | |
download | slapi-nis-76914233fefa2db334b0f281767d243d063a2b73.tar.gz slapi-nis-76914233fefa2db334b0f281767d243d063a2b73.tar.xz slapi-nis-76914233fefa2db334b0f281767d243d063a2b73.zip |
Fix a couple of memory leaks (static analysis)
-rw-r--r-- | src/back-sch.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |