- Many fixes to the four circle codes during taking the new code into
operation. - Fixed some missing output - Second generation histogram memory and velocity selector objects - Fixed a problem in diffscan
This commit is contained in:
6
conman.c
6
conman.c
@ -387,7 +387,7 @@ void SCDeleteConnection(void *pData)
|
||||
}
|
||||
|
||||
/* remove possible buffers */
|
||||
if (pVictim->data != NULL) {
|
||||
if (pVictim->data != NULL && pVictim->dataOwner == 1) {
|
||||
DeleteDynString(pVictim->data);
|
||||
}
|
||||
|
||||
@ -427,6 +427,7 @@ SConnection *SCCopyConnection(SConnection * pCon)
|
||||
result->contextStack = -1;
|
||||
result->iList = -1;
|
||||
result->runLevel = pCon->runLevel;
|
||||
result->data = pCon->data;
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -869,7 +870,7 @@ int SCStartBuffering(SConnection * pCon)
|
||||
if (!VerifyConnection(pCon)) {
|
||||
return 0;
|
||||
}
|
||||
if (pCon->data != NULL) {
|
||||
if (pCon->data != NULL && pCon->dataOwner == 1) {
|
||||
DeleteDynString(pCon->data);
|
||||
}
|
||||
pCon->data = CreateDynString(128, 128);
|
||||
@ -878,6 +879,7 @@ int SCStartBuffering(SConnection * pCon)
|
||||
}
|
||||
pCon->oldWriteFunc = pCon->write;
|
||||
pCon->write = SCBufferWrite;
|
||||
pCon->dataOwner = 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user