Fixed memory leak for 2413