X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mac%2Fmacstore.c;h=35f31bdbcedc79ff57896172496f91af80d27f1f;hb=49d2cf19accb059b3b68d1fc2b78e606a578c3e8;hp=5b6afba2000e3dd221d3bf835045844f6e713261;hpb=3311f8912942a7dce5a0a81d334f3f4bf405f992;p=PuTTY.git 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;