diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-18 19:33:57 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-20 18:53:02 +0100 |
commit | 2a45d72ab1a3648be9eef4202477aef78c60741a (patch) | |
tree | 26de47ae039a1621003f8d8118f3b409a80dc4d0 /src/util | |
parent | ebbbc4a86a070f88ed121bbb8d3e74fd00314183 (diff) | |
download | sssd-2a45d72ab1a3648be9eef4202477aef78c60741a.tar.gz sssd-2a45d72ab1a3648be9eef4202477aef78c60741a.tar.xz sssd-2a45d72ab1a3648be9eef4202477aef78c60741a.zip |
Free resources if fileno failed
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/debug.c b/src/util/debug.c index a027e701b..05b560c4f 100644 --- a/src/util/debug.c +++ b/src/util/debug.c @@ -209,6 +209,8 @@ int open_debug_file_ex(const char *filename, FILE **filep) debug_fd = fileno(f); if (debug_fd == -1) { + fclose(f); + free(logpath); return EIO; } |