afsio: Don't leak memory on GetVenusFidBy* failure
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Feb 2013 17:09:15 +0000 (17:09 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 22 Feb 2013 21:04:18 +0000 (13:04 -0800)
commitba8afdc344a482487008dad325442d71c8bbe526
tree81a220db5af88fa43f49ea82bdcd30daf2cc0e07
parentf67e4a3cdfb1856e31dda0d4741c8d34df13f8fc
afsio: Don't leak memory on GetVenusFidBy* failure

The GetVenusFid functions all allocate the fid structure immediately
upon entry to the function. When we return with an error, that structure
is never freed.

Update the call sites so that we don't leak this memory.

Caught by clang-analyzer

Change-Id: Iec62316d0fd542e70634f384c8319f90ba6b2649
Reviewed-on: http://gerrit.openafs.org/9187
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/venus/afsio.c