Windows PSCP now links against winsftp.c, and scp.c is now a
[u/mdw/putty] / settings.c
index be43f31..d5e0d26 100644 (file)
@@ -29,6 +29,7 @@ static void gpps(void *handle, const char *name, const char *def,
        pdef = platform_default_s(name);
        if (pdef) {
            strncpy(val, pdef, len);
+           sfree(pdef);
        } else {
            strncpy(val, def, len);
        }