]> git.ipfire.org Git - thirdparty/lldpd.git/commit
coverity: remove a theoritical memory leak
authorVincent Bernat <bernat@luffy.cx>
Fri, 22 Nov 2013 22:20:30 +0000 (23:20 +0100)
committerVincent Bernat <bernat@luffy.cx>
Fri, 22 Nov 2013 22:20:30 +0000 (23:20 +0100)
commitddd75166dd41ea2f5643155bc8f8060472b50f09
tree0a65da3d8b939e55d0232f0d23236834dc53dd19
parent4032084d12c44e166c2805ec9a25dbfc80a57ab6
coverity: remove a theoritical memory leak

If cargc is 0, cargv should not have been allocated. However, to be more
robust, let's say this is possible and handle this case correctly.
src/client/lldpcli.c