deserialize: attempt to fix coverity memleak confusion
deserialize: attempt to fix coverity memleak confusion

Coverity is detecting some kind of false positive memory leak here. This
could be because consumed could be < 0 in case of int overflow. This
commit is reworking the error paths in order to prevent any confusion.

gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl