summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-12-17 05:14:49 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-23 21:52:44 +0100
commit2020b1c8a88fc4f0c0dd788261deb06ee0c670a7 (patch)
treecc5f7077160fddb5e67ece6beda38c7533047dc9 /lib/command.c
parentab037159286a3241244a6b3e7d1033e3940aa944 (diff)
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>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions