Skip to content

Commit

Permalink
Forgot to release some data.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockoS committed Oct 19, 2016
1 parent e3ce4b1 commit 9f7832f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/rosetta_extract_dom.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ int main(int argc, char **argv)

int ret;

buffer = NULL;
root = NULL;

if(4 != argc)
{
usage();
Expand Down Expand Up @@ -149,6 +152,7 @@ int main(int argc, char **argv)
}
}
}
PDS_DOM_delete(root);
free(buffer);
return ret ? EXIT_SUCCESS : EXIT_FAILURE;
}

0 comments on commit 9f7832f

Please sign in to comment.