diff options
author | neodarz <neodarz@neodarz.net> | 2019-08-09 16:29:46 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-08-09 16:29:46 +0200 |
commit | 10d8284189cee70bc62f75add5cce218d89a07db (patch) | |
tree | 374052a22ee84a97c80c9474aed463bab64bb279 /api | |
parent | cf86e3de524ff247f496c34cd9e8df61cd4e6845 (diff) | |
download | umosapicpp-10d8284189cee70bc62f75add5cce218d89a07db.tar.xz umosapicpp-10d8284189cee70bc62f75add5cce218d89a07db.zip |
Fix memory leak when delete uobject
Diffstat (limited to 'api')
-rw-r--r-- | api/umosapi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<string>(), request.param(":oid").as<string>(), 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) { |