call fclose() for pid_fp on failure

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
S.Çağlar Onur 2013-12-07 14:16:46 -05:00 committed by Stéphane Graber
parent 7f1dea04a4
commit ccef566eb0

View File

@ -346,6 +346,8 @@ int main(int argc, char *argv[])
out:
lxc_container_put(c);
if (pid_fp)
fclose(pid_fp);
return err;
}