From: Simon Wunderlich Date: Sat, 8 Feb 2014 15:45:06 +0000 (+0100) Subject: batman-adv: fix potential orig_node reference leak X-Git-Tag: v3.14-rc4~30^2~7^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2262df7fcf2c395eca564df83238e931d88d7bf;p=pandora-kernel.git batman-adv: fix potential orig_node reference leak 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 Signed-off-by: Simon Wunderlich Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- Reading git-diff-tree failed