Fix coverity-found memory leak when my_popen fails