From 77a7a980d0ab0bbfd4d99a062dbb0b5eadaa32ce Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 28 Feb 2012 10:25:39 -0800 Subject: Don't leak the env_vars_sorted smartlist in process_environment_make Found by Coverity. No changes/ file, because this bug has not been in a release yet. --- src/common/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common') diff --git a/src/common/util.c b/src/common/util.c index 5fd8c2dca..ecf49a6f1 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3823,6 +3823,8 @@ process_environment_make(struct smartlist_t *env_vars) tor_assert(cp == env->windows_environment_block + total_env_length - 1); } + smartlist_free(env_vars_sorted); + return env; } -- cgit v1.2.3