OSDN Git Service

autopick_free_entryで開放した領域へのポインタをNULLにするように修正。(領域の二重開放防止)
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 8 Feb 2010 14:33:35 +0000 (14:33 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 8 Feb 2010 14:33:35 +0000 (14:33 +0000)
src/autopick.c

index cd77a19..eacdc8e 100644 (file)
@@ -688,6 +688,8 @@ static void autopick_free_entry(autopick_type *entry)
 {
        string_free(entry->name);
        string_free(entry->insc);
+       entry->name = NULL;
+       entry->insc = NULL;
 }