There was an error while loading. Please reload this page.
1 parent d9090d6 commit 0ebba55Copy full SHA for 0ebba55
1 file changed
source/jst_session.c
@@ -75,6 +75,12 @@ static duk_ret_t session_start(duk_context *ctx)
75
{
76
CosaPhpExtLog("%s: entered\n", __PRETTY_FUNCTION__);
77
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
+
84
/* if session already created then do nothing */
85
if(session_identifier)
86
0 commit comments