Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[balancer] fix memory leak in round-robin balancer
before: /016-balancer.t .. TEST 1: round robin does not leak memory WARNING: method GET not supported for ab when taking a request body LeakTest: [5768 5964 5964 6192 6224 6224 6500 6500 6500 6760 6788 6788 6928 7088 7088 7088 7532 8300 8300 8300 8300 8300 8856 9672 10084 10084 10084 10084 10084 10584 10584 10584 10584 10584 10776 11112 11112 11112 11112 11112 11460 11668 11668 11668 11668 11668 11872 12256 12256 12256 12256 12256 12256 12732 12872 12872 13128 14664 14664 14664 14664 14664 14664 14664 14664 15168 15968 16740 17500 18088 18164 18164 18164 18164 18164 18164 18164 18164 18164 18164 18460 19080 19144 19144 19144 19144 19144 19144 19144 19144 19144 19144 19144 19636 20164 20164 20164 20164 20164 20164] LeakTest: k=158.8 t/016-balancer.t .. ok All tests successful. Files=1, Tests=4, 6 wallclock secs ( 0.03 usr 0.00 sys + 1.21 cusr 3.91 csys = 5.15 CPU) Result: PASS after: t/016-balancer.t .. TEST 1: round robin does not leak memory WARNING: method GET not supported for ab when taking a request body LeakTest: [2248 2248 2248 2248 2248 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252 2252] LeakTest: k=0.0 t/016-balancer.t .. ok All tests successful. Files=1, Tests=4, 6 wallclock secs ( 0.02 usr 0.01 sys + 1.15 cusr 3.55 csys = 4.73 CPU) Result: PASS
- Loading branch information