manual page of mac_from_text(3) notes that the allocated storage should be freed with free(). I strongly suspect this is incorrect, as the type mac_t points to a structure which itself contains a pointer. It seems this was introduced in svn rev 122777 where "mac_free(3)" was changed to "free(3)". It seems the specific change was meant for the mac_to_text() function call (a char* pointer indeed should be freed with free()). Reported for 9.1-RELEASE but still present in head/stable. Fix: Replace the text "which must later be freed with free(3)" with "which must later be freed with mac_free(3)". Additionally, it may be useful to mention in the next section that the text pointer allocated by mac_to_text() should be freed with free() - that seems to have been the intent of commit r122777. How-To-Repeat: man mac_text
Responsible Changed From-To: freebsd-doc->rwatson Over to Robert.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Created attachment 228276 [details] mac_free.3 patch and mac_text.3 patch For mac_text(3), change reference to free(3) back to mac_free(3) for mac_from_text. For mac_free(3), change a variable type from mac_3 to mac_t.