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:
parent
d1095bdf74
commit
e27175c7c8
2 changed files with 3 additions and 2 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue