Branch: refs/heads/master Home: https://github.com/jpirko/libteam Commit: b406696ecf41b18249996aba82e3b027b6a882a7 https://github.com/jpirko/libteam/commit/b406696ecf41b18249996aba82e3b027b6a... Author: Michele Baldessari michele@acksyn.org Date: 2014-03-19 (Wed, 19 Mar 2014)
Changed paths: M teamd/teamd_state.c
Log Message: ----------- Fix potential small memory leak
In __reg_val() in case the 'if (per_port && tdport)' condition is true, we leak the previously allocated char *subpath. Instead jump to 'errorout' which frees it, just like the other error paths do in this function.
Signed-off-by: Michele Baldessari michele@acksyn.org Signed-off-by: Jiri Pirko jiri@resnulli.us
libteam@lists.fedorahosted.org