> Same as the others, this time with src/usr.bin/mg/undo.c
You are now losing a memset() in the `rec doesn't come from malloc' code
path.
> Index: undo.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/mg/undo.c,v
> retrieving revision 1.55
> diff -u -p -u -r1.55 undo.c
> --- undo.c 20 Mar 2014 07:47:29 -0000 1.55
> +++ undo.c 24 Apr 2014 02:16:16 -0000
> @@ -89,10 +89,9 @@ new_undo_record(void)
> TAILQ_REMOVE(&undo_free, rec, next);
> undo_free_num--;
> } else {
> - if ((rec = malloc(sizeof(*rec))) == NULL)
> + if ((rec = calloc(1, sizeof(*rec))) == NULL)
> panic("Out of memory in undo code (record)");
> }
> - memset(rec, 0, sizeof(struct undo_rec));
>
> return (rec);
> }
>
>
> --
> Peter Malone <[email protected]>
>