summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-10-18 17:27:37 +0000
committerThierry Vignaud <tv@mageia.org>2011-10-18 17:27:37 +0000
commitc2303e8ff20b547b9adb4fe5c519b431966672f5 (patch)
tree4746ceac96215d3096aebcb24df614f7da94f8a2
parent4361eadeb306f67569608d6ed993c9ff1fac69d0 (diff)
downloadldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar
ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar.gz
ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar.bz2
ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.tar.xz
ldetect-c2303e8ff20b547b9adb4fe5c519b431966672f5.zip
kill now useless free_*() functions
-rw-r--r--modalias.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/modalias.c b/modalias.c
index 868fa43..2573839 100644
--- a/modalias.c
+++ b/modalias.c
@@ -25,46 +25,6 @@ static void get_version(void) {
version = strdup(buf.release);
}
-static void free_aliases(struct module_alias *aliases) {
- if (aliases == NULL)
- return;
- while (aliases->next) {
- struct module_alias *next;
- next = aliases->next;
- free(aliases->module);
- free(aliases);
- aliases = next;
- }
- free(aliases);
-}
-
-static void free_options(struct module_options *modoptions) {
- if (modoptions == NULL)
- return;
- while (modoptions->next) {
- struct module_options *next;
- next = modoptions->next;
- free(modoptions->modulename);
- free(modoptions->options);
- free(modoptions);
- modoptions = next;
- }
- free(modoptions);
-}
-
-static void free_commands(struct module_command *commands) {
- if (commands == NULL)
- return;
- while (commands->next) {
- struct module_command *next;
- next = commands->next;
- free(commands->modulename);
- free(commands->command);
- free(commands);
- commands = next;
- }
- free(commands);
-}
static void free_blacklist(struct module_blacklist *blacklist) {
if (blacklist == NULL)