]> git.proxmox.com Git - mirror_frr.git/commit
lib: parser: keep subgraph pointers on stack
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 17 Dec 2016 04:14:49 +0000 (05:14 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 23 Jan 2017 20:52:44 +0000 (21:52 +0100)
commit2020b1c8a88fc4f0c0dd788261deb06ee0c670a7
treecc5f7077160fddb5e67ece6beda38c7533047dc9
parentab037159286a3241244a6b3e7d1033e3940aa944
lib: parser: keep subgraph pointers on stack

There's no need to malloc() these, we can just keep them on the stack.
The entire struct will get copied around, but replacing a 2-pointer copy
with a 1-pointer copy + malloc + free overhead is not quite efficient.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/command_parse.y