X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/71ed591e9e049cf1c64ec9ddc10e2158c2f76c89..ee5e66d8ffb8750a588db17306acfd3193cc10a9:/mac/macstore.c diff --git a/mac/macstore.c b/mac/macstore.c index 5b6afba2..35f31bdb 100644 --- a/mac/macstore.c +++ b/mac/macstore.c @@ -506,10 +506,10 @@ void *enum_settings_start(void) { OSErr error; struct enum_settings_state *state; - state = safemalloc(sizeof(*state)); + state = snew(struct enum_settings_state); error = get_session_dir(kDontCreateFolder, &state->vRefNum, &state->dirID); if (error != noErr) { - safefree(state); + sfree(state); return NULL; } state->index = 1;