Browse code

- fixed mem leak in t_funcs.c

Andrei Pelinescu-Onciul authored on 31/01/2002 16:03:25
Showing 3 changed files
... ...
@@ -66,7 +66,7 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
66 66
 #-DNO_LOG
67 67
 
68 68
 #PROFILE=  -pg #set this if you want profiling
69
-mode = debug
69
+mode = release
70 70
 #mode = release
71 71
 
72 72
 # platform dependent settings
... ...
@@ -1217,12 +1217,14 @@ int get_ip_and_port_from_uri( struct sip_msg* p_msg , unsigned int *param_ip, un
1217 1217
 	{
1218 1218
 		LOG(L_ERR, "ERROR: get_ip_and_port_from_uri: "
1219 1219
 		  "cannot resolve host\n");
1220
+		free_uri(&parsed_uri);
1220 1221
 		goto error;
1221 1222
 	}
1222 1223
 	memcpy(&ip, nhost->h_addr_list[0], sizeof(unsigned int));
1223 1224
 
1224 1225
 
1225 1226
 success:
1227
+	free_uri(&parsed_uri);
1226 1228
 	*param_ip = ip;
1227 1229
 	*param_port = port;
1228 1230
 	return 0;
... ...
@@ -5,7 +5,7 @@
5 5
 #
6 6
 
7 7
 
8
-debug=9          # debug level (cmd line: -dddddddddd)
8
+debug=1          # debug level (cmd line: -dddddddddd)
9 9
 #fork=yes          # (cmd. line: -D)
10 10
 fork=no
11 11
 log_stderror=yes # (cmd line: -E)