[OpenSIPS-Devel] [OpenSIPS/opensips] a6c67b: Fixed memory leak on modules/drouting/drouting.c
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jul 22 17:00:58 CEST 2016
Branch: refs/heads/2.1
Home: https://github.com/OpenSIPS/opensips
Commit: a6c67bbaf3ce7d37aacfc1483aa4485ddf15ecd2
https://github.com/OpenSIPS/opensips/commit/a6c67bbaf3ce7d37aacfc1483aa4485ddf15ecd2
Author: Ozzyboshi <gun101 at email.it>
Date: 2016-07-22 (Fri, 22 Jul 2016)
Changed paths:
M modules/drouting/drouting.c
Log Message:
-----------
Fixed memory leak on modules/drouting/drouting.c
This leak occures in function get_group_id() when do_routing is called without parameters in opensips.cfg.
In this case the dr_default_grp variable is not equal -1 and 'return dr_default_grp' is executed without freeing the res variable previously allocated for query execution.
(cherry picked from commit 65739943151f08aee18a7bc2125c7ac90ee84d00)
Commit: 0e1fcf9957f479b95216a2413a12ffcd88438b37
https://github.com/OpenSIPS/opensips/commit/0e1fcf9957f479b95216a2413a12ffcd88438b37
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2016-07-22 (Fri, 22 Jul 2016)
Changed paths:
M modules/drouting/drouting.c
Log Message:
-----------
Remove unnecessary test.
"res" cannot be null at that point
(cherry picked from commit 0b60681f0cc08ffd13fbac3dc5cbde17904ad177)
Compare: https://github.com/OpenSIPS/opensips/compare/00e81090fcc7...0e1fcf9957f4
More information about the Devel
mailing list