[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix another memory leak case in sandbox.c:prot_strings()
commit 72ba1739e2bf93d022e93fc2100650e300ad1e4d
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Aug 25 11:14:31 2014 -0400
Fix another memory leak case in sandbox.c:prot_strings()
This is related to the rest of 523587a5cf62119baa01822e2e783925726a790b
---
src/common/sandbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 146f4ad..b414e31 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -1076,7 +1076,7 @@ prot_strings(scmp_filter_ctx ctx, sandbox_cfg_t* cfg)
SCMP_CMP(0, SCMP_CMP_EQ, (intptr_t) pr_mem_base));
if (ret) {
log_err(LD_BUG,"(Sandbox) mremap protected memory filter fail!");
- return ret;
+ goto out;
}
// no munmap of the protected base address
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits