mirror of
https://github.com/opnsense/src.git
synced 2026-03-16 15:48:26 -04:00
sh: Fix crash when undefining or redefining a currently executing function Add a reference count to function definitions. Memory may leak if a SIGINT arrives in interactive mode at exactly the wrong time, this will be fixed later by changing SIGINT handling. PR: bin/137640 Approved by: re (kib)
11 lines
115 B
Text
11 lines
115 B
Text
# $FreeBSD$
|
|
|
|
f() { }
|
|
f
|
|
hash -v f >/dev/null
|
|
f() { { }; }
|
|
f
|
|
hash -v f >/dev/null
|
|
f() { { } }
|
|
f
|
|
hash -v f >/dev/null
|