Problem: Double free when memory allocation fails. (Zu-Ming Jiang)
Solution: Use VIM_CLEAR() instead of vim_free(). (closes #4991)
if (typebuf.tb_buf == typebuf_init)
internal_error("Free typebuf 1");
else
- vim_free(typebuf.tb_buf);
+ VIM_CLEAR(typebuf.tb_buf);
if (typebuf.tb_noremap == noremapbuf_init)
internal_error("Free typebuf 2");
else
- vim_free(typebuf.tb_noremap);
+ VIM_CLEAR(typebuf.tb_noremap);
}
/*
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2091,
/**/
2090,
/**/