Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=629... Commit: 6292a2220fc4c34967d56035b7dce3ce99690198 Parent: 050b8f584c9721a63ab093ec34599eb37502723b Author: Fabio M. Di Nitto fdinitto@redhat.com AuthorDate: Mon Jul 26 18:27:46 2010 +0200 Committer: Fabio M. Di Nitto fdinitto@redhat.com CommitterDate: Tue Jul 27 10:30:25 2010 +0200
config: free new config if we cannot find the config_version
Resolves: rhbz#617161, rhbz#617163
Signed-off-by: Fabio M. Di Nitto fdinitto@redhat.com --- cman/daemon/cman-preconfig.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c index f5dbcd7..fe12004 100644 --- a/cman/daemon/cman-preconfig.c +++ b/cman/daemon/cman-preconfig.c @@ -1191,6 +1191,7 @@ static int cmanpre_reloadconfig(struct objdb_iface_ver0 *objdb, int flush, const if (config_value) { config_version_new = atoi(config_value); } else { + objdb->object_destroy(cluster_parent_handle_new); sprintf (error_reason, "%s", "Cannot find new /cluster/config_version key in configuration\n"); goto err; }
cluster-commits@lists.fedorahosted.org