1
0
Fork 0

free json in case of error

This commit is contained in:
Jan Steemann 2013-11-05 12:42:50 +01:00
parent 6806d213b1
commit 21360bfc25
1 changed files with 2 additions and 0 deletions

View File

@ -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");
}