Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix: fencing: Prevent memory leak when registering devices

  • Loading branch information...
commit c8700bad58284ed0d1f59b980764700c7fc99aa7 1 parent c637bf7
Andrew Beekhof authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  fencing/main.c
2  fencing/main.c
@@ -651,6 +651,8 @@ static void cib_device_update(resource_t *rsc, pe_working_set_t *data_set)
651 651 data = create_device_registration_xml(rsc_name(rsc), provider, agent, params);
652 652 stonith_device_register(data, NULL, TRUE);
653 653
  654 + stonith_key_value_freeall(params, 1, 1);
  655 + free_xml(data);
654 656 }
655 657 }
656 658

0 comments on commit c8700ba

Please sign in to comment.
Something went wrong with that request. Please try again.