1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 13:02:47 -05:00

Add an assortment of missing frees, and one missing file close. Mostly

on error paths, although the one in PSFTP's wildcard_iterate will come
up in normal usage.

[originally from svn r9916]
This commit is contained in:
Simon Tatham
2013-07-11 17:43:41 +00:00
parent c925526e3f
commit cc4f38df14
2 changed files with 16 additions and 1 deletions

View File

@ -922,6 +922,7 @@ int wildcard_iterate(char *filename, int (*func)(void *, char *), void *ctx)
printf("%s: canonify: %s\n", newname, fxp_error());
ret = 0;
}
sfree(newname);
matched = TRUE;
ret &= func(ctx, cname);
sfree(cname);