summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-25 11:14:31 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-25 11:14:31 -0400
commit72ba1739e2bf93d022e93fc2100650e300ad1e4d (patch)
tree2eb8802a69f49a24d40f1d53f574d7637b280bbb /src
parent9222707e5c55ae7419d998f46aaa903fdeacb68a (diff)
downloadtor-72ba1739e2bf93d022e93fc2100650e300ad1e4d.tar.gz
tor-72ba1739e2bf93d022e93fc2100650e300ad1e4d.zip
Fix another memory leak case in sandbox.c:prot_strings()
This is related to the rest of 523587a5cf62119baa01822e2e783925726a790b
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 146f4ad5a5..b414e3184d 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