diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2014-06-04 01:00:51 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2014-06-29 12:47:21 +0200 |
commit | f80f838b2f54738937ef1281b237710132195c44 (patch) | |
tree | e5dbb9062560ac02ad2e5baf62c8d820560c75d2 /lib/queue.h | |
parent | 27bf90a14670283a899b96c56dd23f8413e0973e (diff) | |
download | quagga-f80f838b2f54738937ef1281b237710132195c44.tar.bz2 quagga-f80f838b2f54738937ef1281b237710132195c44.tar.xz |
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>
Diffstat (limited to 'lib/queue.h')
0 files changed, 0 insertions, 0 deletions