fix: handle leak (#20836)
* fix: handle leak * fix: del unused code --------- Co-authored-by: facetosea <25808407@qq.com>
This commit is contained in:
parent
1e84961d02
commit
965af6cc82
|
@ -29,7 +29,6 @@ struct SDataSinkHandle;
|
|||
|
||||
typedef struct SDataSinkManager {
|
||||
SDataSinkMgtCfg cfg;
|
||||
TdThreadMutex mutex;
|
||||
} SDataSinkManager;
|
||||
|
||||
typedef int32_t (*FPutDataBlock)(struct SDataSinkHandle* pHandle, const SInputData* pInput, bool* pContinue);
|
||||
|
|
|
@ -23,7 +23,6 @@ SDataSinkStat gDataSinkStat = {0};
|
|||
|
||||
int32_t dsDataSinkMgtInit(SDataSinkMgtCfg* cfg) {
|
||||
gDataSinkManager.cfg = *cfg;
|
||||
taosThreadMutexInit(&gDataSinkManager.mutex, NULL);
|
||||
return 0; // to avoid compiler eror
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue