Fix memory leak, that introduced in previous commit