From: Nick Mathewson Date: Mon, 9 Sep 2013 18:58:15 +0000 (-0400) Subject: Remove a usage of free() X-Git-Tag: tor-0.2.5.1-alpha~39^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42e6ab0e14bc3f6c71e262b4c9d888f67beb599f;p=thirdparty%2Ftor.git Remove a usage of free() --- diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 2f5859e779..6fdddd2f2f 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -830,7 +830,10 @@ prot_strings(sandbox_cfg_t* cfg) memcpy(pr_mem_next, param_val, param_size); // re-point el parameter to protected - free((char*)((smp_param_t*)el->param)->value); + { + void *old_val = ((smp_param_t*)el->param)->value; + tor_free(old_val); + } ((smp_param_t*)el->param)->value = (intptr_t) pr_mem_next; ((smp_param_t*)el->param)->prot = 1;