ares_expand_name.3: clarify how to free the data
This commit is contained in:
parent
75a8407985
commit
df72bed2e3
|
@ -43,6 +43,8 @@ The length of the encoded name is stored in the variable pointed to by
|
||||||
.I enclen
|
.I enclen
|
||||||
so that the caller can advance past the encoded domain name to read
|
so that the caller can advance past the encoded domain name to read
|
||||||
further data in the message.
|
further data in the message.
|
||||||
|
|
||||||
|
Use \fIares_free_string(3)\fP to free the allocated hostname.
|
||||||
.SH RETURN VALUES
|
.SH RETURN VALUES
|
||||||
.B ares_expand_name
|
.B ares_expand_name
|
||||||
can return any of the following values:
|
can return any of the following values:
|
||||||
|
@ -56,7 +58,7 @@ The encoded domain name was malformed and could not be expanded.
|
||||||
.B ARES_ENOMEM
|
.B ARES_ENOMEM
|
||||||
Memory was exhausted.
|
Memory was exhausted.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR ares_mkquery (3)
|
.BR ares_mkquery (3), ares_free_string (3)
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
Greg Hudson, MIT Information Systems
|
Greg Hudson, MIT Information Systems
|
||||||
.br
|
.br
|
||||||
|
|
Loading…
Reference in New Issue