Index: tags.c =================================================================== RCS file: /cvs/src/usr.bin/mg/tags.c,v retrieving revision 1.19 diff -u -p -r1.19 tags.c --- tags.c 8 Mar 2023 04:43:11 -0000 1.19 +++ tags.c 22 Mar 2023 16:38:48 -0000 @@ -370,10 +370,11 @@ int addctag(char *l) { struct ctag *t; - + if ((t = malloc(sizeof(struct ctag))) == NULL) { dobeep(); ewprintf("Out of memory"); + free(l); return (FALSE); } t->tag = l;
- [patch] usr.bin/mg/tags.c: Add free() lux