commit | ec5f2a248dcb14942326bd644cf32b94b075aa52 | [log] [tgz] |
---|---|---|
author | Jorge Lucangeli Obes <jorgelo@google.com> | Thu Jul 07 16:23:22 2016 -0400 |
committer | Jorge Lucangeli Obes <jorgelo@google.com> | Thu Jul 07 16:23:22 2016 -0400 |
tree | 00b25af1ec774bd3fe3a2ce0fbe570fe0b6586b1 | |
parent | eaa7b3c395c801682d30beb357ca2ed203ae88c2 [diff] |
rild: Destroy the minijail struct after dropping privs. This fixes a small memory leak. Bug: 28178548 Change-Id: Ib97ba3c6a4ee0cd6bed19abef386c1dd3071f518
diff --git a/rild/rild.c b/rild/rild.c index 53852b8..a55d69b 100644 --- a/rild/rild.c +++ b/rild/rild.c
@@ -111,6 +111,7 @@ CAP_MASK_LONG(CAP_NET_RAW)); minijail_enter(j); + minijail_destroy(j); /* * Debuggable build only: