1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Joe Yates's memory leak patches.

[originally from svn r3650]
This commit is contained in:
Simon Tatham
2003-12-19 12:44:46 +00:00
parent 20bc740780
commit 7a1eae7ff2
10 changed files with 118 additions and 8 deletions

View File

@ -51,6 +51,14 @@ static void cmdline_save_param(char *p, char *value, int pri)
saves[pri].nsaved++;
}
void cmdline_cleanup(void)
{
int pri;
for (pri = 0; pri < NPRIORITIES; pri++)
sfree(saves[pri].params);
}
#define SAVEABLE(pri) do { \
if (need_save) { cmdline_save_param(p, value, pri); return ret; } \
} while (0)