Fix a memory leak 50/212950/1
authorMichal Bloch <m.bloch@partner.samsung.com>
Wed, 28 Aug 2019 11:53:23 +0000 (13:53 +0200)
committerMichal Bloch <m.bloch@partner.samsung.com>
Wed, 28 Aug 2019 11:53:35 +0000 (13:53 +0200)
Change-Id: I0a6d5aed3646065d39876d36132eeb49f57f7729
Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
src/memory/lowmem-limit.c

index ac22c1f..987735d 100644 (file)
@@ -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;
                }