pacemaker/pacemaker-cib-new-segfault.diff
Tim Serong 527a76dc73 - Core: Move several new fields since v1.1.6 to the end of the data
types for ABI compliance 
- stonith: Default to 20s timeout for start and monitor operations of
  stonith resources which is same as "default-action-timeout" (bnc#733337)
- Tools: ptest - Fix "-X, --xml-text" option to handle a XML string as its
  argument (bnc#736212)
- cib: Fix segfault caused by destroying an already freed hash table (cl#5023)
- stonith: Expose IDs of stonith resources to stonith agents through
  "$CRM_meta_st_device_id" environment variable (bnc#728579)

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=31
2012-02-14 03:25:00 +00:00

19 lines
540 B
Diff

commit 7da9e833b63d83c32852154481572f816754c114
Author: Gao,Yan <ygao@suse.com>
Date: Tue Dec 20 05:45:15 2011 +0800
Medium: cib: Bug cl#5023 - Fix segfault caused by destroying an already freed hash table
diff --git a/lib/cib/cib_client.c b/lib/cib/cib_client.c
index 26c0205..523c9d8 100644
--- a/lib/cib/cib_client.c
+++ b/lib/cib/cib_client.c
@@ -412,6 +412,7 @@ cib_delete(cib_t * cib)
}
g_hash_table_destroy(cib_op_callback_table);
+ cib_op_callback_table = NULL;
cib->cmds->free(cib);
cib = NULL;
}