1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

43789: possible use after free clearing up math func from module

This commit is contained in:
Kamil Dudka 2018-11-07 14:04:55 +01:00 committed by Peter Stephenson
parent d1095bdf74
commit e27175c7c8
2 changed files with 3 additions and 2 deletions

View file

@ -1390,8 +1390,6 @@ setmathfuncs(char const *nam, MathFunc f, int size, int *e)
if (deletemathfunc(f)) {
zwarnnam(nam, "math function `%s' already deleted", f->name);
ret = 1;
} else {
f->flags &= ~MFF_ADDED;
}
}
f++;