Skip to content

Commit

Permalink
Fix leak of xmlfile on error path
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 28, 2015
1 parent 77864aa commit 584c84f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xml.c
Expand Up @@ -129,6 +129,7 @@ int config_lookup_host(struct openconnect_info *vpninfo, const char *host)

if (openconnect_sha1(sha1, xmlfile, size)) {
fprintf(stderr, _("Failed to SHA1 existing file\n"));
free(xmlfile);
return -1;
}

Expand Down

0 comments on commit 584c84f

Please sign in to comment.