[PATCH] hostapd_cli: Fix memory leak on interactive mode

Jouni Malinen j
Sat Jul 16 07:39:28 PDT 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