summaryrefslogtreecommitdiff
path: root/networking/nameif.c
diff options
context:
space:
mode:
authorAlexey Fomenko2011-03-02 04:13:21 +0100
committerDenys Vlasenko2011-03-02 04:13:21 +0100
commit1df0af76700c7f75ea43006ad6d450cdeeb6244f (patch)
tree62db1ada5ae9433213e94fd1ffbd643a4c5ff91f /networking/nameif.c
parent940c7206c2a4acb386ab47199a6c313c04387f3b (diff)
downloadbusybox-1df0af76700c7f75ea43006ad6d450cdeeb6244f.zip
busybox-1df0af76700c7f75ea43006ad6d450cdeeb6244f.tar.gz
don't leak malloced variables in the loop; remove double alloc
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/nameif.c')
-rw-r--r--networking/nameif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nameif.c b/networking/nameif.c
index d02c2c1..6cf1c50 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -156,7 +156,7 @@ int nameif_main(int argc, char **argv)
if (argc) {
while (*argv) {
- char *ifname = xstrdup(*argv++);
+ char *ifname = *argv++;
prepend_new_eth_table(&clist, ifname, *argv++);
}
} else {