From 10d8284189cee70bc62f75add5cce218d89a07db Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 9 Aug 2019 16:29:46 +0200 Subject: Fix memory leak when delete uobject --- api/umosapi.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'api') diff --git a/api/umosapi.cpp b/api/umosapi.cpp index 9db650f..249cb90 100644 --- a/api/umosapi.cpp +++ b/api/umosapi.cpp @@ -149,6 +149,7 @@ void UmosapiService::deleteUObject(const Rest::Request& request, Http::ResponseW auto json_string = uobject::remove(request.param(":mcollection").as(), request.param(":oid").as(), jsonObjet); response.send(Http::Code::Ok, json_string, MIME(Application, Json)); + json_object_put(jsonObjet); } void UmosapiService::searchUObjectByKeyValue(const Rest::Request& request, Http::ResponseWriter response) { -- cgit v1.2.1