cluster: STABLE3 - config: free new config if we cannot find the config_version
Fabio M. Di Nitto
fabbione at fedoraproject.org
Mon Jul 26 16:28:20 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4eb4d4067f5c3b015090a849122795064eb6ef2d
Commit: 4eb4d4067f5c3b015090a849122795064eb6ef2d
Parent: 558021888b4712900cb5708de0dbc292d1bb60eb
Author: Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate: Mon Jul 26 18:27:46 2010 +0200
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Mon Jul 26 18:27:46 2010 +0200
config: free new config if we cannot find the config_version
Signed-off-by: Fabio M. Di Nitto <fdinitto at 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 aa0b760..cc5bc93 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -1187,6 +1187,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;
}
More information about the cluster-commits
mailing list