aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-02-28 10:25:39 -0800
committerNick Mathewson <nickm@torproject.org>2012-02-29 19:49:26 -0500
commit77a7a980d0ab0bbfd4d99a062dbb0b5eadaa32ce (patch)
treea8675016bc9edc1d69a95222d1efb83933941de0 /src
parent6a0d809f44afa4c20382030191bd69cf0017d03a (diff)
downloadtor-77a7a980d0ab0bbfd4d99a062dbb0b5eadaa32ce.tar
tor-77a7a980d0ab0bbfd4d99a062dbb0b5eadaa32ce.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c2
1 files changed, 2 insertions, 0 deletions
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;
}