From: Emil Velikov Date: Mon, 2 Sep 2024 22:20:19 +0000 (+0100) Subject: libkmod/docs: remove misleading "After use, free" X-Git-Tag: v34~425 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18fdc3e4876f41e1d439efc19159a4abdbec0c6d;p=thirdparty%2Fkmod.git libkmod/docs: remove misleading "After use, free" In a couple of instances, the doc suggests freeing the (whole) list after operating on a (single) list entry. This is somewhat misleading - drop the instances, since the getters doc (the ones allocating the lists) are pretty clear about freeing. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/94 Signed-off-by: Lucas De Marchi --- diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h index cf440c97..06423382 100644 --- a/libkmod/libkmod.h +++ b/libkmod/libkmod.h @@ -1071,8 +1071,6 @@ struct kmod_list *kmod_module_get_sections(const struct kmod_module *mod); * * Get the address of a kmod module section. * - * After use, free the @list by calling kmod_module_section_free_list(). - * * Returns: the address of this kmod module section on success or ULONG_MAX * on failure. */ @@ -1084,8 +1082,6 @@ unsigned long kmod_module_section_get_address(const struct kmod_list *entry); * * Get the name of a kmod module section. * - * After use, free the @list by calling kmod_module_section_free_list(). - * * Returns: the name of this kmod module section on success or NULL on * failure. The string is owned by the section, do not free it. */