aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2006-12-02 19:45:16 (GMT)
committerJouni Malinen <j@w1.fi>2006-12-02 19:45:16 (GMT)
commit3437472c260972fe91efb76ae39ef5baa29d7181 (patch)
tree548f9dd04d22334c242f7280b782af62f309169c
parentf6765a714a17c8dd6bf8f9fab0515c5c1f016c63 (diff)
downloadhostap-history-3437472c260972fe91efb76ae39ef5baa29d7181.zip
hostap-history-3437472c260972fe91efb76ae39ef5baa29d7181.tar.gz
hostap-history-3437472c260972fe91efb76ae39ef5baa29d7181.tar.bz2
Fixed a potential memory leak if -i command line argument is specified
multiple times.
-rw-r--r--hostapd/hostapd_cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index a523d37..abde6ce 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -537,6 +537,7 @@ int main(int argc, char *argv[])
printf("%s\n", hostapd_cli_version);
return 0;
case 'i':
+ free(ctrl_ifname);
ctrl_ifname = strdup(optarg);
break;
case 'p':