From 03d2df62f614f97d2b5cf52518565ce91333ba87 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 22 Dec 2014 12:27:26 -0500 Subject: Fix a bunch of memory leaks in the unit tests. Found with valgrind --- src/or/transports.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/or/transports.c') 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 arg used as arguments to execve(2). */ -static INLINE void +STATIC void free_execve_args(char **arg) { char **tmp = arg; -- cgit v1.2.3-54-g00ecf