[PATCH] graph/conn: fix memory leak on socket init failure
Thomas Monjalon
thomas at monjalon.net
Thu Oct 15 17:16:37 CEST 2026
02/06/2026 15:12, Alexey Simakov:
> In conn_init(), conn_free() does not release the buffer allocated
> for conn structure, resulting in a memory leak when server socket
> creation fails.
>
> Add missing free(c->buf) call to conn_free().
>
> Fixes: 3f90eda5b7fb ("app/graph: add telnet connectivity")
> Cc: skori at marvell.com
>
> Signed-off-by: Alexey Simakov <bigalex934 at gmail.com>
Applied, thanks.
Note: it seems to fix also the normal case.
More information about the dev
mailing list