Skip to content

Commit

Permalink
memory leak fix. related to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Courtin committed Nov 13, 2012
1 parent 93b98f9 commit d99c2dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/struct/cgi_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ array *cgi_parse_xml(ows * o, char *query)
buffer_free(operations);
buffer_free(filter);
buffer_free(typename);
array_free(o_ns);

xmlFreeDoc(xmldoc);

Expand Down
2 changes: 2 additions & 0 deletions src/wfs/wfs_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,12 @@ static buffer *wfs_retrieve_typename(ows * o, wfs_request * wr, xmlNodePtr n)
}

xmlFree(content);
array_free(o_ns);
return typename;
}
}

array_free(o_ns);
return NULL;
}

Expand Down

0 comments on commit d99c2dd

Please sign in to comment.