ubik: Don't leak memory if mutex init fails
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Feb 2013 16:15:29 +0000 (16:15 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Sun, 24 Feb 2013 19:09:40 +0000 (11:09 -0800)
commit58529bd8b055dc1afc567d0cb7749841ce2897d5
treea9333a33bab9ffb526c7428f910ddef47d81b0c5
parentb92fbc217c80af7554bbf6dc34de720da8f01c5c
ubik: Don't leak memory if mutex init fails

If we can't initialise the ubik_client mutex, don't leak the
structure when returning an error.

Caught by clang-analyzer

Change-Id: Ib36d2ddf585a31b628e56dce1f33ee859fc835bc
Reviewed-on: http://gerrit.openafs.org/9182
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/ubik/ubikclient.c