Browse Source

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.
Nick Mathewson 12 years ago
parent
commit
77a7a980d0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/common/util.c

+ 2 - 0
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;
 }