From: Michal Bloch Date: Wed, 28 Aug 2019 11:53:23 +0000 (+0200) Subject: Fix a memory leak X-Git-Tag: accepted/tizen/unified/20190829.040204~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F212950%2F1;p=platform%2Fcore%2Fsystem%2Fresourced.git Fix a memory leak Change-Id: I0a6d5aed3646065d39876d36132eeb49f57f7729 Signed-off-by: Michal Bloch --- diff --git a/src/memory/lowmem-limit.c b/src/memory/lowmem-limit.c index ac22c1f..987735d 100644 --- a/src/memory/lowmem-limit.c +++ b/src/memory/lowmem-limit.c @@ -294,6 +294,7 @@ static bool lowmem_limit_cb(int fd, void *data) if (anon_usage < mle->threshold) { _D("(%s) cgroup escaped low memory status. usage(%d), anon usage (%d), threshold(%d)", cg_dir, usage, anon_usage, mle->threshold); + free(mlog); return true; }