mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add reminder to return memory allocated by this call.
Obtained from: OpenBSD
This commit is contained in:
parent
766e996f98
commit
81e4e6a2d6
1 changed files with 10 additions and 1 deletions
|
|
@ -81,10 +81,19 @@ is to modify future file modes correctly.
|
|||
.Pp
|
||||
If the mode passed to
|
||||
.Fn setmode
|
||||
is invalid,
|
||||
is invalid or if memory cannot be allocated for the return value,
|
||||
.Fn setmode
|
||||
returns
|
||||
.Dv NULL .
|
||||
.Pp
|
||||
The value returned from
|
||||
.Fn setmode
|
||||
is obtained from
|
||||
.Fn malloc
|
||||
and should be returned to the system with
|
||||
.Fn free
|
||||
when the program is done with it, generally after a call to
|
||||
.Fn getmode .
|
||||
.Sh ERRORS
|
||||
The
|
||||
.Fn setmode
|
||||
|
|
|
|||
Loading…
Reference in a new issue