On Saturday 08 February 2014 16:45:06 Simon Wunderlich wrote:
Since batadv_orig_node_new() sets the refcount to two, assuming that the calling function will use a reference for putting the orig_node into a hash or similar, both references must be freed if initialization of the orig_node fails. Otherwise that object may be leaked in that error case.
Reported-by: Antonio Quartulli antonio@meshcoding.com Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
bat_iv_ogm.c | 2 ++ 1 file changed, 2 insertions(+)
Applied in revision cb4d66e.
Thanks, Marek