mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 07:47:12 +02:00
memry allcation
This commit is contained in:
@ -370,7 +370,7 @@ int UDPStandardImplementation::setupFifoStructure(){
|
|||||||
|
|
||||||
//allocate memory
|
//allocate memory
|
||||||
mem0[i] = (char*)malloc((bufferSize * numberofJobsPerBuffer + fifoBufferHeaderSize) * fifoSize);
|
mem0[i] = (char*)malloc((bufferSize * numberofJobsPerBuffer + fifoBufferHeaderSize) * fifoSize);
|
||||||
if (mem0[i]){
|
if (mem0[i] == NULL){
|
||||||
cprintf(BG_RED,"Error: Could not allocate memory for listening \n");
|
cprintf(BG_RED,"Error: Could not allocate memory for listening \n");
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user