From 18fdc3e4876f41e1d439efc19159a4abdbec0c6d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 2 Sep 2024 23:20:19 +0100 Subject: [PATCH] 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 --- libkmod/libkmod.h | 4 ---- 1 file changed, 4 deletions(-) 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. */ -- 2.47.3