Skip to content

Commit

Permalink
Free params_node
Browse files Browse the repository at this point in the history
Change-Id: Ib5edd37f0ef058339de20da83578b3ea0a3e1f50
  • Loading branch information
p3ck committed Jun 1, 2020
1 parent 7a699cb commit d555036
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,8 @@ static gchar *copy_job_as_template(gchar *job, gboolean novalid,
xmlNodePtr copy_params_node_ptr = xmlDocCopyNode(params_node->nodesetval->nodeTab[0],
new_xml_doc_ptr, 1);
xmlAddChild (new_recipe_ptr, copy_params_node_ptr);
xmlXPathFreeObject(params_node);
params_node = NULL;
}

// find task nodes
Expand Down

0 comments on commit d555036

Please sign in to comment.