eina: ensure resource destruction on failure
authorJean Guyomarc'h <jean@guyomarch.bzh>
Mon, 6 Jun 2016 21:40:29 +0000 (23:40 +0200)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Mon, 6 Jun 2016 21:45:18 +0000 (23:45 +0200)
commitdec1d251dc3f622020346b7479cc7bc116f81150
treecb9edadf6a0f653a48fc9109d516d6b73cc8efe9
parent109d040e3d4a2ffa7c13d56f0f759974f6c6a231
eina: ensure resource destruction on failure

In case of failure within eina_lock_new() (posix), a
pthread_mutexattr_t would have been left in an initialized state,
without any deinitialization being called.

Consequences would have been implementation defined.
src/lib/eina/eina_inline_lock_posix.x