Module: kamailio
Branch: master
Commit: 116ef94420bf6ed9e0ae3bc08a612d8d0c4aa0a7
URL:
https://github.com/kamailio/kamailio/commit/116ef94420bf6ed9e0ae3bc08a612d8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-09-06T13:21:33+02:00
core: parser - free local unused param structure
---
Modified: src/core/parser/parse_addr_spec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/116ef94420bf6ed9e0ae3bc08a612d8…
Patch:
https://github.com/kamailio/kamailio/commit/116ef94420bf6ed9e0ae3bc08a612d8…
---
diff --git a/src/core/parser/parse_addr_spec.c b/src/core/parser/parse_addr_spec.c
index 8bbbdefa72..604791c7b0 100644
--- a/src/core/parser/parse_addr_spec.c
+++ b/src/core/parser/parse_addr_spec.c
@@ -555,6 +555,9 @@ static char *parse_to_param(char *const buffer, const char *const
end,
saved_status, (int)(tmp - buffer), ZSW(buffer));
goto error;
}
+ if(newparam) {
+ pkg_free(newparam);
+ }
*returned_status = saved_status;
return tmp;