File pacemaker-stonith-ng-double-free-pending-ops-in-free_device.patch of Package pacemaker.8397

commit e7027e9d303be5e3f9531c0cb0ef8af914f2adda
Author: Klaus Wenninger <klaus.wenninger@aon.at>
Date:   Tue Jul 11 16:35:33 2017 +0200

    fix: stonith-ng: avoid double-free of pending-ops in free_device

diff --git a/fencing/commands.c b/fencing/commands.c
index b336d3b82..57a1a4ed3 100644
--- a/fencing/commands.c
+++ b/fencing/commands.c
@@ -509,7 +509,6 @@ free_device(gpointer data)
 
         crm_warn("Removal of device '%s' purged operation %s", device->id, cmd->action);
         cmd->done_cb(0, -ENODEV, NULL, cmd);
-        free_async_command(cmd);
     }
     g_list_free(device->pending_ops);
 
openSUSE Build Service is sponsored by