mirror_frr/lib
Renato Westphal 44f12f209f *: fix coverity warnings - resource leaks
These are mostly trivial fixes for leaks in the error path of some functions.

The changes in bgpd/bgp_mpath.c deserves a bit of explanation though. In
the bgp_info_mpath_aggregate_update() function, we were allocating memory
for the lcomm variable but doing nothing with it. Since the code for
communities, extended communities and large communities is pretty much
the same in this function, it's clear that this was a copy and paste
error where most of the ext. community code was copied but not all of
it as it should have been.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-10-24 19:30:30 -02:00
..
.gitignore build: convert lib/ to non-recursive build 2017-07-31 23:03:27 +02:00
agentx.c *: reindent 2017-07-17 14:04:07 +02:00
bfd.c lib: Fix abbreviation 2017-09-29 11:53:53 -04:00
bfd.h *: reindent 2017-07-17 14:04:07 +02:00
bitfield.h *: reindent 2017-07-17 14:04:07 +02:00
buffer.c lib: Cleanup some missed reformat 2017-10-23 18:09:23 -04:00
buffer.h *: reindent 2017-07-17 14:04:07 +02:00
checksum.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
checksum.h *: reindent 2017-07-17 14:04:07 +02:00
clippy.c *: reindent 2017-07-17 14:04:07 +02:00
clippy.h lib: clippy the assistant 2017-06-14 19:29:23 +02:00
command_graph.c lib: add CLI token for 48-bit mac addresses 2017-08-11 12:42:01 -04:00
command_graph.h lib: add CLI token for 48-bit mac addresses 2017-08-11 12:42:01 -04:00
command_lex.l *: support keywords that begin with uppercase letter 2017-09-14 18:07:30 +00:00
command_match.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
command_match.h *: reindent 2017-07-17 14:04:07 +02:00
command_parse.y lib: add CLI token for 48-bit mac addresses 2017-08-11 12:42:01 -04:00
command_py.c lib: Fix small memory leak when using command_py.c 2017-10-17 09:22:41 -04:00
command.c *: add missing \n in some help strings 2017-10-24 19:30:30 -02:00
command.h lib: Add some documentation about argv_find 2017-10-10 12:31:36 -04:00
compiler.h lib: split off compiler magic into its own file 2017-08-24 00:18:53 +02:00
csv.c lib: Fix missing va_end 2017-10-10 12:31:36 -04:00
csv.h *: reindent 2017-07-17 14:04:07 +02:00
defun_lex.l build: convert lib/ to non-recursive build 2017-07-31 23:03:27 +02:00
distribute.c *: reindent 2017-07-17 14:04:07 +02:00
distribute.h *: reindent 2017-07-17 14:04:07 +02:00
event_counter.c *: reindent 2017-07-17 14:04:07 +02:00
event_counter.h *: reindent 2017-07-17 14:04:07 +02:00
ferr.c lib: fix wrong warning from clang 2017-10-09 13:07:50 +02:00
ferr.h lib: CMD_FERR_RETURN should return CMD_WARNING_CONFIG_FAILED 2017-09-18 15:07:40 +00:00
fifo.h *: reindent 2017-07-17 14:04:07 +02:00
filter.c bgpd: Intialize all the variables used in argv_find. 2017-09-20 14:56:23 -07:00
filter.h *: reindent 2017-07-17 14:04:07 +02:00
freebsd-queue.h lib: cleanup the work queue implementation 2017-08-17 17:47:07 +02:00
frr_pthread.c *: reindent 2017-07-17 14:04:07 +02:00
frr_pthread.h *: reindent 2017-07-17 14:04:07 +02:00
frr_zmq.c lib: ZeroMQ read handler, v2 2017-08-28 18:00:13 +02:00
frr_zmq.h lib: document frrzmq in its header file 2017-08-28 18:00:13 +02:00
frratomic.h *: reindent 2017-07-17 14:04:07 +02:00
getopt1.c *: reindent 2017-07-17 14:04:07 +02:00
getopt.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
getopt.h *: reindent 2017-07-17 14:04:07 +02:00
gitversion.pl build: make gitversion more useful 2017-08-02 02:59:51 +02:00
grammar_sandbox_main.c lib/bgpd: provide/use API to get hostname/domainname 2017-08-24 16:37:16 -07:00
grammar_sandbox.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
graph.c *: reindent 2017-07-17 14:04:07 +02:00
graph.h *: reindent 2017-07-17 14:04:07 +02:00
hash.c *: fix coverity warnings - resource leaks 2017-10-24 19:30:30 -02:00
hash.h lib: use load factor as hash expansion trigger 2017-08-09 13:53:11 -04:00
hook.c lib: hooks: support priority ordering & reversing 2017-08-15 13:25:41 +02:00
hook.h lib: hooks: support priority ordering & reversing 2017-08-15 13:25:41 +02:00
if_rmap.c lib: Hash creation cleanup 2017-09-05 14:33:01 -04:00
if_rmap.h *: reindent 2017-07-17 14:04:07 +02:00
if.c lib: fix coverity warnings introduced by the iface rb-tree conversion 2017-10-24 18:26:02 -02:00
if.h *: use the FOR_ALL_INTERFACES abstraction from babeld 2017-10-10 09:05:46 -03:00
imsg-buffer.c lib: standardize use of queue.h 2017-08-17 17:47:05 +02:00
imsg.c lib: standardize use of queue.h 2017-08-17 17:47:05 +02:00
imsg.h lib: revert reindent of files imported from OpenBSD 2017-07-24 18:40:24 -03:00
ipaddr.h *: reindent 2017-07-17 14:04:07 +02:00
jhash.c *: reindent 2017-07-17 14:04:07 +02:00
jhash.h *: reindent 2017-07-17 14:04:07 +02:00
json.c *: reindent 2017-07-17 14:04:07 +02:00
json.h *: reindent 2017-07-17 14:04:07 +02:00
keychain.c *: add missing \n in some help strings 2017-10-24 19:30:30 -02:00
keychain.h *: reindent 2017-07-17 14:04:07 +02:00
libfrr.c lib, ldpd: fix "argument cannot be negative" coverity warnings 2017-10-05 22:51:23 -03:00
libfrr.h lib: add -N/--pathspace option 2017-08-28 23:50:42 +02:00
libospf.h ospf: Fix segfault if compiled with DEBUG 2017-08-09 12:07:58 +02:00
linklist.c *: Convert list_free usage to list_delete 2017-10-05 10:53:17 -04:00
linklist.h lib: linklist avoid access NULL->data 2017-10-09 10:51:03 +02:00
log_int.h *: reindent 2017-07-17 14:04:07 +02:00
log.c lib: smallify loglock 2017-09-12 14:49:58 -04:00
log.h lib: plug logging hole during startup 2017-08-02 23:36:42 +02:00
Makefile build: convert lib/ to non-recursive build 2017-07-31 23:03:27 +02:00
md5.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
md5.h *: reindent 2017-07-17 14:04:07 +02:00
memory_vty.c *: reindent 2017-07-17 14:04:07 +02:00
memory_vty.h *: reindent 2017-07-17 14:04:07 +02:00
memory.c lib: centralized memstats-at-exit 2017-08-24 00:18:50 +02:00
memory.h lib: split off compiler magic into its own file 2017-08-24 00:18:53 +02:00
module.c *: fix compiler warnings 2017-08-26 01:46:40 +02:00
module.h *: reindent 2017-07-17 14:04:07 +02:00
monotime.h *: Define the number of seconds in a Day, Week and year 2017-08-08 09:06:22 -04:00
mpls.h zapi: add support for routes with multiple labels 2017-08-23 18:58:35 -03:00
network.c *: reindent 2017-07-17 14:04:07 +02:00
network.h *: reindent 2017-07-17 14:04:07 +02:00
nexthop.c lib: fix a64448ba, invalid NULL->num_labels 2017-10-09 12:32:05 +02:00
nexthop.h zebra: deduplicate nexthops 2017-09-12 10:05:07 -04:00
ns.c *: use clang's 'ForEachMacros' format style option 2017-09-15 14:53:46 -03:00
ns.h *: reindent 2017-07-17 14:04:07 +02:00
openbsd-queue.h *: reindent 2017-07-17 14:04:07 +02:00
openbsd-tree.c lib: fix corrupted RB trees 2017-07-24 18:50:45 -03:00
openbsd-tree.h lib: revert reindent of files imported from OpenBSD 2017-07-24 18:40:24 -03:00
pid_output.c lib: log error details if F_SETLK fails 2017-09-21 13:27:50 -03:00
plist_int.h *: reindent 2017-07-17 14:04:07 +02:00
plist.c lib: Modify prefix_list_apply to allow retrieval of prefix 2017-08-31 10:30:19 -04:00
plist.h lib: Modify prefix_list_apply to allow retrieval of prefix 2017-08-31 10:30:19 -04:00
pqueue.c *: reindent 2017-07-17 14:04:07 +02:00
pqueue.h *: reindent 2017-07-17 14:04:07 +02:00
prefix.c lib: prefix: try harder to not hash garbage 2017-08-24 00:18:53 +02:00
prefix.h *: Cleanup multiple is_default... code 2017-08-31 16:11:17 -04:00
privs.c lib: terminate capabilities only if initialized 2017-08-21 21:53:46 +02:00
privs.h lib: privs: make uid/gid accessible before setuid 2017-08-02 23:36:39 +02:00
ptm_lib.c lib: fix clang warning 2017-10-08 23:46:24 +02:00
ptm_lib.h *: reindent 2017-07-17 14:04:07 +02:00
pw.h ldpd: integrate with the pseudowire manager in zebra 2017-08-09 12:35:16 +02:00
qobj.c lib: Hash creation cleanup 2017-09-05 14:33:01 -04:00
qobj.h *: reindent 2017-07-17 14:04:07 +02:00
queue.h lib: standardize use of queue.h 2017-08-17 17:47:05 +02:00
route_types.pl *: remove VTYNL, part 6 of 6 2017-07-14 10:20:03 +02:00
route_types.txt Merge remote-tracking branch 'frr/master' into pull-624 2017-06-13 09:18:14 +02:00
routemap.c lib: Hash creation cleanup 2017-09-05 14:33:01 -04:00
routemap.h Merge pull request #1075 from donaldsharp/rip_metric 2017-09-05 18:17:52 +02:00
sbuf.c lib: add sbuf 2017-08-03 11:34:01 +02:00
sbuf.h lib: add sbuf 2017-08-03 11:34:01 +02:00
sha256.c lib: Fix memset usage 2017-10-03 12:03:56 -04:00
sha256.h *: reindent 2017-07-17 14:04:07 +02:00
sigevent.c lib: centralized memstats-at-exit 2017-08-24 00:18:50 +02:00
sigevent.h *: reindent 2017-07-17 14:04:07 +02:00
skiplist.c *: fix be32 reading / 24-bit left shift 2017-09-09 19:50:58 +02:00
skiplist.h *: reindent 2017-07-17 14:04:07 +02:00
smux.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
smux.h *: reindent 2017-07-17 14:04:07 +02:00
snmp.c *: reindent 2017-07-17 14:04:07 +02:00
sockopt.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
sockopt.h *: reindent 2017-07-17 14:04:07 +02:00
sockunion.c lib: Remove sockopt_cork functionality 2017-08-01 20:36:33 -04:00
sockunion.h zebra: kernel_socket: read extra attributes 2017-08-28 05:52:12 +02:00
spf_backoff.c *: fix compiler warnings 2017-08-26 01:46:40 +02:00
spf_backoff.h *: reindent 2017-07-17 14:04:07 +02:00
srcdest_table.c *: reindent 2017-07-17 14:04:07 +02:00
srcdest_table.h *: reindent 2017-07-17 14:04:07 +02:00
stream.c *: fix be32 reading / 24-bit left shift 2017-09-09 19:50:58 +02:00
stream.h *: fix be32 reading / 24-bit left shift 2017-09-09 19:50:58 +02:00
strlcat.c *: reindent 2017-07-17 14:04:07 +02:00
strlcpy.c *: reindent 2017-07-17 14:04:07 +02:00
subdir.am Merge pull request #1020 from opensourcerouting/ferr 2017-09-05 07:52:18 -04:00
systemd.c *: reindent 2017-07-17 14:04:07 +02:00
systemd.h *: reindent 2017-07-17 14:04:07 +02:00
table.c lib: No need to call apply_mask 2 times 2017-10-16 14:47:08 -04:00
table.h lib: fix const-check in route_node 2017-08-22 15:27:08 +02:00
termtable.c *: fix compiler warnings 2017-08-26 01:46:40 +02:00
termtable.h *: reindent 2017-07-17 14:04:07 +02:00
thread.c lib: Display unsigned instead of signed 2017-10-17 20:49:15 -04:00
thread.h lib: fix thread scheduling weirdness 2017-08-31 19:00:00 -04:00
vector.c *: reindent 2017-07-17 14:04:07 +02:00
vector.h *: reindent 2017-07-17 14:04:07 +02:00
version.h.in Rename: FreeRangeRouting FRRouting 2017-03-30 14:22:35 -04:00
vlan.h lib: VLAN definition 2017-05-25 10:20:03 -07:00
vrf_int.h *: reindent 2017-07-17 14:04:07 +02:00
vrf.c *: introduce new rb-tree to optimize interface lookup by ifindex 2017-10-10 09:05:02 -03:00
vrf.h *: introduce new rb-tree to optimize interface lookup by ifindex 2017-10-10 09:05:02 -03:00
vty.c *: fix style 2017-08-30 11:27:11 -04:00
vty.h lib: add vty_frame() to get rid of unneeded config 2017-08-29 08:36:00 +02:00
vxlan.h lib: VxLAN Network Identifier definition 2017-05-25 10:20:03 -07:00
wheel.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
wheel.h *: reindent 2017-07-17 14:04:07 +02:00
workqueue.c lib: Free workqueue memory leak on free 2017-10-11 10:00:54 -04:00
workqueue.h lib: cleanup the work queue implementation 2017-08-17 17:47:07 +02:00
zassert.h Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
zclient.c *: Modify zclient_init to require privs data 2017-10-23 18:12:29 -04:00
zclient.h *: Modify zclient_init to require privs data 2017-10-23 18:12:29 -04:00
zebra.h zebra: cleanup blackhole support 2017-08-28 05:07:51 +02:00