Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix for memory leak in UL data path at cu_stub [Issue-ID: ODUHIGH-398]
[o-du/l2.git]
/
src
/
du_app
/
du_egtp.c
diff --git
a/src/du_app/du_egtp.c
b/src/du_app/du_egtp.c
index
075cd7c
..
76ec0cf
100644
(file)
--- a/
src/du_app/du_egtp.c
+++ b/
src/du_app/du_egtp.c
@@
-29,8
+29,6
@@
#include "du_egtp.h"
#include "du_utils.h"
#include "du_egtp.h"
#include "du_utils.h"
-/* Global variable declaration */
-EgtpGlobalCb egtpCb;
/**************************************************************************
* @brief Task Initiation callback function.
/**************************************************************************
* @brief Task Initiation callback function.
@@
-874,6
+872,7
@@
uint8_t egtpSendMsg(Buffer *mBuf)
uint16_t txLen;
CmInetMemInfo info;
CmInetAddr dstAddr;
uint16_t txLen;
CmInetMemInfo info;
CmInetAddr dstAddr;
+ static uint64_t numDataSent = 0;
info.region = DU_APP_MEM_REGION;
info.pool = DU_POOL;
info.region = DU_APP_MEM_REGION;
info.pool = DU_POOL;
@@
-888,6
+887,11
@@
uint8_t egtpSendMsg(Buffer *mBuf)
DU_LOG("\nERROR --> EGTP : Failed sending the message");
return RFAILED;
}
DU_LOG("\nERROR --> EGTP : Failed sending the message");
return RFAILED;
}
+ else
+ {
+ DU_LOG("\nDEBUG --> EGTP : Sent UL Message [%ld]", numDataSent+1);
+ numDataSent++;
+ }
return ROK;
}
return ROK;
}