[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Don't leak the env_vars_sorted smartlist in process_environment_make



commit 77a7a980d0ab0bbfd4d99a062dbb0b5eadaa32ce
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Feb 28 10:25:39 2012 -0800

    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 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/common/util.c b/src/common/util.c
index 5fd8c2d..ecf49a6 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;
 }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits