commit | f80f838b2f54738937ef1281b237710132195c44 | [log] [tgz] |
---|---|---|
author | David Lamparter <equinox@opensourcerouting.org> | Wed Jun 04 01:00:51 2014 +0200 |
committer | David Lamparter <equinox@opensourcerouting.org> | Sun Jun 29 12:47:21 2014 +0200 |
tree | e5dbb9062560ac02ad2e5baf62c8d820560c75d2 | |
parent | 27bf90a14670283a899b96c56dd23f8413e0973e [diff] |
bgpd: fix memory leak on malformed attribute When bgp_attr_parse returns BGP_ATTR_PARSE_ERROR, it may already have parsed and allocated some attributes before hitting that error. Free the attr's data before returning. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>