crypto/mem_dbg.c:672: error: NULL_DEREFERENCE
  pointer `lcl` last assigned on line 669 could be null and is dereferenced at line 672, column 4.
Showing all 7 steps of the trace


crypto/mem_dbg.c:653:1: start of procedure print_leak()
651.   	} MEM_LEAK;
652.   
653. > static void print_leak(const MEM *m, MEM_LEAK *l)
654.   	{
655.   	char buf[1024];

crypto/mem_dbg.c:656:2: 
654.   	{
655.   	char buf[1024];
656. > 	char *bufp = buf;
657.   	APP_INFO *amip;
658.   	int ami_cnt;

crypto/mem_dbg.c:659:2: 
657.   	APP_INFO *amip;
658.   	int ami_cnt;
659. > 	struct tm *lcl = NULL;
660.   	CRYPTO_THREADID tid;
661.   

crypto/mem_dbg.c:664:5: Taking false branch
662.   #define BUF_REMAIN (sizeof buf - (size_t)(bufp - buf))
663.   
664.   	if(m->addr == (char *)l->bio)
           ^
665.   	    return;
666.   

crypto/mem_dbg.c:667:6: Taking true branch
665.   	    return;
666.   
667.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
668.   		{
669.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:669:3: 
667.   	if (options & V_CRYPTO_MDEBUG_TIME)
668.   		{
669. > 		lcl = localtime(&m->time);
670.   	
671.   		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:671:3: 
669.   		lcl = localtime(&m->time);
670.   	
671. > 		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
672.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
673.   		bufp += strlen(bufp);
