Module: kamailio
Branch: master
Commit: f2b133e24e29f9f0ce7ba568a5d4564c7b0f8f31
URL:
https://github.com/kamailio/kamailio/commit/f2b133e24e29f9f0ce7ba568a5d4564…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-09-16T08:08:18+02:00
core: free params list at end on error state inside parse_addr_spec
---
Modified: src/core/parser/parse_addr_spec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f2b133e24e29f9f0ce7ba568a5d4564…
Patch:
https://github.com/kamailio/kamailio/commit/f2b133e24e29f9f0ce7ba568a5d4564…
---
diff --git a/src/core/parser/parse_addr_spec.c b/src/core/parser/parse_addr_spec.c
index 99138dcaf4..1ff5a16908 100644
--- a/src/core/parser/parse_addr_spec.c
+++ b/src/core/parser/parse_addr_spec.c
@@ -896,6 +896,9 @@ char *parse_addr_spec(char *const buffer, const char *const end,
status);
goto error;
}
+ if(to_b->error == PARSE_ERROR) {
+ free_to_params(to_b);
+ }
return tmp;
error: