From 2ad6f4179f2291a69fafeca2cb2c118c826a13f7 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 29 Jan 2015 15:37:23 +0100 Subject: [PATCH] fixed leak --- arangod/RestHandler/RestUploadHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/RestHandler/RestUploadHandler.cpp b/arangod/RestHandler/RestUploadHandler.cpp index 656157392a..aa99e9ac87 100644 --- a/arangod/RestHandler/RestUploadHandler.cpp +++ b/arangod/RestHandler/RestUploadHandler.cpp @@ -134,7 +134,7 @@ Handler::status_t RestUploadHandler::execute () { TRI_InitObjectJson(TRI_UNKNOWN_MEM_ZONE, &json); TRI_Insert3ObjectJson(TRI_UNKNOWN_MEM_ZONE, &json, "filename", TRI_CreateStringCopyJson(TRI_UNKNOWN_MEM_ZONE, fullName, strlen(fullName))); - TRI_Free(TRI_CORE_MEM_ZONE, filename); + TRI_Free(TRI_CORE_MEM_ZONE, fullName); generateResult(HttpResponse::CREATED, &json); TRI_DestroyJson(TRI_UNKNOWN_MEM_ZONE, &json);