diff options
author | Rob Landley | 2006-03-01 16:39:45 +0000 |
---|---|---|
committer | Rob Landley | 2006-03-01 16:39:45 +0000 |
commit | e7c43b66d74ee9902a6732122788a7a16bcfbf18 (patch) | |
tree | ebb8583e9e1265588592614c0b4878daded44125 /modutils | |
parent | 93f2286e6e59dab5eed14b5912a79254031c5a62 (diff) | |
download | busybox-e7c43b66d74ee9902a6732122788a7a16bcfbf18.zip busybox-e7c43b66d74ee9902a6732122788a7a16bcfbf18.tar.gz |
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
from before "if(x) free(x)".
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/insmod.c | 5 |
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); |