]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Move sfree inside if.
authorOwen Dunn <owen@greenend.org.uk>
Fri, 27 Nov 2015 19:52:46 +0000 (19:52 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 29 Feb 2016 19:59:34 +0000 (19:59 +0000)
(cherry picked from commit 0f5299e5a86e87068277b19c008ff5eb0f78d022)

windows/window.c

index ec7e17190a8fae28a88e1b2fcca30dd48ad5831a..bcb0d9ca95ac4c23ffd006ef9c04a311f3070d2d 100644 (file)
@@ -400,8 +400,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
         if (! setprocessacl(error)) {
            logevent(NULL, "Could not restrict process ACL: %s",
                     error);
+           sfree(error);
        }
-        sfree(error);
 #endif
     }
     /*