opensm: fixed getline pointer allocation free in osm_console_io
PATCH 1/1 opensm: fixed getline pointer allocation free in osm_console_io
p_line allocated by getline() isn't being freed at the end.
--- opensm/opensm/osm_console_io.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
opensm/opensm/osm_console_io.c +2 -0
@@ -130,8 +130,10 @@ int cio_open(osm_console_t * p_oct, int new_fd, osm_log_t * p_log)"Console connection aborted: %s (%s)\n" , p_oct->client_hn, p_oct->client_ip);close (new_fd); +free (p_line);return -1 ; } +free (p_line); } p_oct->in_fd = new_fd; p_oct->out_fd = p_oct->in_fd;
Signature · 6 lines
1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html