summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index d5d58a1..d40012d 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -4231,9 +4231,8 @@ out:
#ifdef CONFIG_FEATURE_CLEAN_UP
if(fp)
fclose(fp);
- if(tmp1) {
- free(tmp1);
- } else {
+ free(tmp1);
+ if(!tmp1) {
free(m_name);
}
free(m_filename);