summaryrefslogtreecommitdiff
path: root/src/or/transports.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-12-22 12:27:26 -0500
committerNick Mathewson <nickm@torproject.org>2014-12-22 12:27:26 -0500
commit03d2df62f614f97d2b5cf52518565ce91333ba87 (patch)
tree0d9ae7750a5bfd29c886a3820306fdec97fbae78 /src/or/transports.c
parentb94cb401d2185566e7fb52b78c5a5a6747987f99 (diff)
downloadtor-03d2df62f614f97d2b5cf52518565ce91333ba87.tar.gz
tor-03d2df62f614f97d2b5cf52518565ce91333ba87.zip
Fix a bunch of memory leaks in the unit tests. Found with valgrind
Diffstat (limited to 'src/or/transports.c')
-rw-r--r--src/or/transports.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/transports.c b/src/or/transports.c
index 2623f807d0..7999be3d33 100644
--- a/src/or/transports.c
+++ b/src/or/transports.c
@@ -112,8 +112,6 @@ static void parse_method_error(const char *line, int is_server_method);
#define parse_server_method_error(l) parse_method_error(l, 1)
#define parse_client_method_error(l) parse_method_error(l, 0)
-static INLINE void free_execve_args(char **arg);
-
/** Managed proxy protocol strings */
#define PROTO_ENV_ERROR "ENV-ERROR"
#define PROTO_NEG_SUCCESS "VERSION"
@@ -1502,7 +1500,7 @@ pt_kickstart_proxy, (const smartlist_t *transport_list,
/** Frees the array of pointers in <b>arg</b> used as arguments to
execve(2). */
-static INLINE void
+STATIC void
free_execve_args(char **arg)
{
char **tmp = arg;