In get_sesslist(), when freeing, set freed members to NULL on general
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 7 Apr 2005 01:32:41 +0000 (01:32 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 7 Apr 2005 01:32:41 +0000 (01:32 +0000)
principles.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5608 cda61777-01e9-0310-a592-d414129be87e

settings.c

index 8b9caa0..f407385 100644 (file)
@@ -818,5 +818,7 @@ void get_sesslist(struct sesslist *list, int allocate)
     } else {
        sfree(list->buffer);
        sfree(list->sessions);
+       list->buffer = NULL;
+       list->sessions = NULL;
     }
 }