From: Daniel Borkmann Date: Mon, 16 Dec 2013 10:45:01 +0000 (+0100) Subject: bpf_exp: free duplicated labels at exit time X-Git-Tag: v3.14-rc1~94^2~470 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d207cf4c1ad27c6f8881857ca301f8489826116d;p=pandora-kernel.git bpf_exp: free duplicated labels at exit time Valgrind found that extracted labels that are passed from the lexer weren't freed upon exit. Therefore, add a small helper function that walks label tables and frees them. Since also NULL can be passed to free(3), we do not need to take care of that here. While at it, fix up a spacing error in bpf_set_curr_label(). Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed