Просмотр исходного кода

Fix bug where if checkpoint section is expired about the same time as a
checkpoint is deleted, a warning would be displayed.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1398 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 18 лет назад
Родитель
Сommit
ad3506cfdc
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      exec/ckpt.c

+ 2 - 0
exec/ckpt.c

@@ -1000,6 +1000,8 @@ void checkpoint_section_release (struct checkpoint_section *section)
 {
 	log_printf (LOG_LEVEL_DEBUG, "checkpoint_section_release expiration timer = 0x%p\n", section->expiration_timer);
 	list_del (&section->list);
+
+	openais_timer_delete (section->expiration_timer);
 	if (section->section_descriptor.section_id.id) {
 		free (section->section_descriptor.section_id.id);
 	}