mirror of https://gitee.com/bigwinds/arangodb
free json in case of error
This commit is contained in:
parent
6806d213b1
commit
21360bfc25
|
@ -250,6 +250,8 @@ bool RestEdgeHandler::createDocument () {
|
|||
FREE_STRING(TRI_CORE_MEM_ZONE, edge._fromKey);
|
||||
FREE_STRING(TRI_CORE_MEM_ZONE, edge._toKey);
|
||||
|
||||
TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, json);
|
||||
|
||||
if (res == TRI_ERROR_ARANGO_COLLECTION_NOT_FOUND) {
|
||||
generateError(HttpResponse::NOT_FOUND, res, wrongPart + " does not point to a valid collection");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue