[PATCH 1/1] cmd: Close file opened with popen with correct function (coverity)