Skip to content

Commit

Permalink
Med: fix xml.c memleak in "missing upgrade XSLT" case
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
  • Loading branch information
jnpkrn committed Oct 22, 2014
1 parent 3b47ee2 commit 40b8d98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/common/xml.c
Expand Up @@ -386,6 +386,7 @@ static int __xml_build_schema_list(void)
xslt = get_schema_path(NULL, transform);
if(stat(xslt, &s) != 0) {
crm_err("Transform %s not found", xslt);
free(xslt);
__xml_schema_add(2, version, NULL, NULL, NULL, -1);
break;
} else {
Expand Down

0 comments on commit 40b8d98

Please sign in to comment.