]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - mac/macstore.c
Add ability for ssh2_userkey_loadpub() to return the key comment.
[PuTTY.git] / mac / macstore.c
index 5b6afba2000e3dd221d3bf835045844f6e713261..35f31bdbcedc79ff57896172496f91af80d27f1f 100644 (file)
@@ -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;