[jpirko/libteam] b40669: Fix potential small memory leak