Permalink
Browse files

Fix: fencing: Prevent memory leak when registering devices

  • Loading branch information...
1 parent c637bf7 commit c8700bad58284ed0d1f59b980764700c7fc99aa7 @beekhof committed Mar 21, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 fencing/main.c
View
@@ -651,6 +651,8 @@ static void cib_device_update(resource_t *rsc, pe_working_set_t *data_set)
data = create_device_registration_xml(rsc_name(rsc), provider, agent, params);
stonith_device_register(data, NULL, TRUE);
+ stonith_key_value_freeall(params, 1, 1);
+ free_xml(data);
}
}

0 comments on commit c8700ba

Please sign in to comment.