Don't leak memory in get_service_dependencies().
authorIain Patterson <me@iain.cx>
Thu, 21 Jul 2016 16:09:32 +0000 (17:09 +0100)
committerIain Patterson <me@iain.cx>
Thu, 28 Jul 2016 15:44:24 +0000 (16:44 +0100)
commit6ab2ed787e886fd87ba81e7ec510588da3c0e216
treed3e5d6355c8b7e39bdee2f8074248b20516c1746
parent64567097975b06d71d6602baf2df2d56f0525f2f
Don't leak memory in get_service_dependencies().

Ensure we free qsc when there are no dependencies.
Ensure we free qsc when we couldn't allocate a buffer.
Free the buffer and zero its pointer's size when there are no
dependencies.
service.cpp