eldbus: create object when needed
authorSebastian Dransfeld <sd@tango.flipp.net>
Sat, 7 Dec 2013 13:07:29 +0000 (14:07 +0100)
committerSebastian Dransfeld <sd@tango.flipp.net>
Sat, 7 Dec 2013 20:11:32 +0000 (21:11 +0100)
commit63f824c6599fd58fd1427a68569440b37f03769f
tree2c7f38706be19b6ec651a1d5fa23e9f2b83b96fd
parent08978ddb560ad10e4427fc7b4aaa18cf6912ba0c
eldbus: create object when needed

We allocate the strbuf at the beginning of the function, but do several
return checks after this which does not free the strbuf before return,
and we don't use the strbuf.

So create the strbuf object after checks, just before we need it.

Fixes CID 1039287
src/bin/eldbus/parser.c