Is there a free alternative to Photoshops Adaptive Wide Angle filter?

Adobe Photoshop provides an Adaptive Wide Angle filter to to correct lens distortions. I really like the intuitive user interface which allows me to just draw a line to fix issues. Is there any free software which has the same feature?

example