summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modalias.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modalias.c b/modalias.c
index 29646e3..eb33423 100644
--- a/modalias.c
+++ b/modalias.c
@@ -59,8 +59,10 @@ static void set_default_alias_file(void) {
(!stat(fallback_aliases, &st_fallback) && st_fallback.st_mtime > st_alias.st_mtime)) {
free(aliasfilename);
aliasdefault = fallback_aliases;
+ free(aliasfilename);
} else {
aliasdefault = aliasfilename;
+ free(fallback_aliases);
}
}
}