# HG changeset patch # User Mark Doliner # Date 1238149006 0 # Node ID 22188571df6565388eb8fbf89837f63517d909a8 # Parent a48bb75939dff6de066883657de25a5812b66022 Don't leak an fd if we can't open the destination file when untarring diff -r a48bb75939df -r 22188571df65 pidgin/win32/untar.c --- a/pidgin/win32/untar.c Fri Mar 27 10:15:38 2009 +0000 +++ b/pidgin/win32/untar.c Fri Mar 27 10:16:46 2009 +0000 @@ -212,9 +212,11 @@ * make sure the directory path exists. */ fpdst = createpath(dst); - if (!fpdst) + if (!fpdst) { /* error message already given */ + fclose(fpsrc); return; + } #ifdef _POSIX_SOURCE # ifndef _WEAK_POSIX