diff options
author | Rob Landley <rob@landley.net> | 2006-03-01 16:39:45 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-01 16:39:45 +0000 |
commit | e7c43b66d74ee9902a6732122788a7a16bcfbf18 (patch) | |
tree | ebb8583e9e1265588592614c0b4878daded44125 /networking/traceroute.c | |
parent | 93f2286e6e59dab5eed14b5912a79254031c5a62 (diff) | |
download | busybox-w32-e7c43b66d74ee9902a6732122788a7a16bcfbf18.tar.gz busybox-w32-e7c43b66d74ee9902a6732122788a7a16bcfbf18.tar.bz2 busybox-w32-e7c43b66d74ee9902a6732122788a7a16bcfbf18.zip |
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
from before "if(x) free(x)".
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | networking/traceroute.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index e6011cc47..22d27f240 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -902,10 +902,8 @@ gethostinfo(const char *host) | |||
902 | static void | 902 | static void |
903 | freehostinfo(struct hostinfo *hi) | 903 | freehostinfo(struct hostinfo *hi) |
904 | { | 904 | { |
905 | if (hi->name != NULL) { | 905 | free(hi->name); |
906 | free(hi->name); | 906 | hi->name = NULL; |
907 | hi->name = NULL; | ||
908 | } | ||
909 | free((char *)hi->addrs); | 907 | free((char *)hi->addrs); |
910 | free((char *)hi); | 908 | free((char *)hi); |
911 | } | 909 | } |