Skip to content

Commit 0ebba55

Browse files
RDKB-63013 native bld test
1 parent d9090d6 commit 0ebba55

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

source/jst_session.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ static duk_ret_t session_start(duk_context *ctx)
7575
{
7676
CosaPhpExtLog("%s: entered\n", __PRETTY_FUNCTION__);
7777
const char* cookie;
78+
/* ----------- MEMORY LEAK FOR COVERITY TEST ----------- */
79+
char *test = malloc(100); // allocate 100 bytes
80+
test[0] = 'a';
81+
/* intentionally do nothing with leak or free it */
82+
/* --------------------------------------------------------------- */
83+
7884
/* if session already created then do nothing */
7985
if(session_identifier)
8086
{

0 commit comments

Comments
 (0)