[PATCH] hostapd_cli: Fix memory leak on interactive mode

Jouni Malinen j at w1.fi
Sat Jul 16 10:39:28 EDT 2011


On Thu, Jan 27, 2011 at 09:44:17AM +0900, Masashi Honma wrote:
> The hostapd_cli shows following meassages when I stop it with SIGINT.

> WPA_TRACE: memleak - START
> [0]: ./hostapd_cli(os_malloc+0x55) [0x804be25]
>      os_malloc() ../src/utils/os_unix.c:359

> This patch solves this issue with select() instead of alert().

I converted hostapd_cli to use src/utils/edit*c similarly to wpa_cli.
This addresses the memory leak and keeps the cli tools more similar with
each other.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list