Fix a double free when opening a command-line path

https://retrace.fedoraproject.org/faf/problems/1625976/