Browse code

ipops: replace return with goto error to release resources

Daniel-Constantin Mierla authored on 20/07/2017 19:55:34
Showing 1 changed files
... ...
@@ -249,7 +249,7 @@ int pv_parse_dns_name(pv_spec_t *sp, str *in)
249 249
 			if(p!=pvi.s+pvi.len)
250 250
 			{
251 251
 				LM_ERR("invalid index [%.*s]\n", in->len, in->s);
252
-				return -1;
252
+				goto error;
253 253
 			}
254 254
 			dpv->nidx *= sign;
255 255
 		}