From: Narasimha S. <nsh...@us...> - 2011-03-23 19:24:08
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SFCC - Small Footprint CIM Client". The branch, master has been updated via 15f824680e3bfce51df1deeb1be9aeac8ded1227 (commit) via 718024f884aca07a1cf35879badaa609dc241d4f (commit) from a53d9d182171b82cb21ae17a582e5faae2a91734 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 15f824680e3bfce51df1deeb1be9aeac8ded1227 Author: Narasimha Sharoff <nsh...@us...> Date: Wed Mar 23 12:23:07 2011 -0700 [ 2990315 ] cmciRelease not called in case of error commit 718024f884aca07a1cf35879badaa609dc241d4f Author: Narasimha Sharoff <nsh...@us...> Date: Wed Mar 23 12:20:33 2011 -0700 [ 2990315 ] cmciRelease not called in case of error ----------------------------------------------------------------------- Summary of changes: diff --git a/ChangeLog b/ChangeLog index b6d7772..edb7131 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-23 Narasimha Sharoff <nsh...@us...> + + * frontend/sfcc/sfcclient.c + [ 2990315 ] cmciRelease not called in case of error + (patch by Klaus Kampf) + 2011-03-02 Narasimha Sharoff <nsh...@us...> * TEST/v2*.c diff --git a/NEWS b/NEWS index 67133d3..4c96e72 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,7 @@ Bugs: - 2793377: Missing includes - 3101151: SfcbLocal failed to connect due to hardcoded library path - 3195267: sfcc v2 tests segfault when sfcb is not running +- 2990315: cmciRelease not called in case of error Changes in 2.2.1 ================ diff --git a/frontend/sfcc/sfcclient.c b/frontend/sfcc/sfcclient.c index be1345c..2418410 100644 --- a/frontend/sfcc/sfcclient.c +++ b/frontend/sfcc/sfcclient.c @@ -109,6 +109,15 @@ CMCIClient *cmciConnect2(const char *hn, const char *scheme, const char *port, } } pthread_mutex_unlock(&ConnectionControl.ccMux); + if (!cc) { + /* cleanup ccEnv after pthread_mutex_unlock */ + cmciRelease(NULL); + if (rc) { + rc->rc = CMPI_RC_ERR_FAILED; + rc->msg = NULL; + } + } + return cc; } hooks/post-receive -- SFCC - Small Footprint CIM Client |