Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: fencing: Prevent memory leak when registering devices

  • Loading branch information...
commit c8700bad58284ed0d1f59b980764700c7fc99aa7 1 parent c637bf7
@beekhof authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  fencing/main.c
View
2  fencing/main.c
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.