From: Chris B. <buc...@us...> - 2013-09-18 17:00:55
|
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 "sfcb - Small Footprint CIM Broker". The branch, master has been updated via 34137ef64f981be98fd8edf393b5badb875cccb4 (commit) from 33b9a571c616f26772d0037fc43f9a789b8cb803 (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 34137ef64f981be98fd8edf393b5badb875cccb4 Author: buccella <buc...@li...> Date: Wed Sep 18 13:00:24 2013 -0400 Change to match SFCC change: [bugs:#2663] ----------------------------------------------------------------------- Summary of changes: cimcClientSfcbLocal.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cimcClientSfcbLocal.c b/cimcClientSfcbLocal.c index a00541e..610454a 100644 --- a/cimcClientSfcbLocal.c +++ b/cimcClientSfcbLocal.c @@ -132,6 +132,7 @@ releaseConnection(ClientConnection *con) { CMPIStatus rc = { CMPI_RC_OK, NULL }; free(con); + con = NULL; return rc; } @@ -202,6 +203,7 @@ releaseClient(Client * mb) CMRelease(cl->connection); free(cl); + cl = NULL; return rc; } @@ -1962,10 +1964,10 @@ localConnect(ClientEnv *ce, CMPIStatus *st) return (rc == 0) ? rc : sfcbSocket; } +/* ReleaseCIMCEnv() in SFCC will take care of the dlclose() */ static void * release(ClientEnv *ce) { - void *lib = ce->hdl; closeLogging(); CONNECT_LOCK(); if (localConnectCount > 0) @@ -1975,10 +1977,9 @@ release(ClientEnv *ce) sfcbSockets.send = -1; } CONNECT_UNLOCK(); - free(ce); sunsetControl(); uninitGarbageCollector(); - return lib; + return NULL; } static Client *CMPIConnect2(ClientEnv *ce, const char *hn, @@ -2090,6 +2091,7 @@ void _Cleanup_SfcbLocal_Env(void) _SFCB_TRACE_STOP(); } +/* called by SFCC's NewCIMCEnv() */ ClientEnv * _Create_SfcbLocal_Env(char __attribute__ ((unused)) *id, unsigned int options, int __attribute__ ((unused)) *rc, char __attribute__ ((unused)) **msg) hooks/post-receive -- sfcb - Small Footprint CIM Broker |