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


crypto/mem_dbg.c:599:1: start of procedure print_leak()
597.   	} MEM_LEAK;
598.   
599. > static void print_leak(const MEM *m, MEM_LEAK *l)
600.   	{
601.   	char buf[1024];

crypto/mem_dbg.c:602:2: 
600.   	{
601.   	char buf[1024];
602. > 	char *bufp = buf;
603.   	APP_INFO *amip;
604.   	int ami_cnt;

crypto/mem_dbg.c:605:2: 
603.   	APP_INFO *amip;
604.   	int ami_cnt;
605. > 	struct tm *lcl = NULL;
606.   	unsigned long ti;
607.   

crypto/mem_dbg.c:610:5: Taking false branch
608.   #define BUF_REMAIN (sizeof buf - (size_t)(bufp - buf))
609.   
610.   	if(m->addr == (char *)l->bio)
           ^
611.   	    return;
612.   

crypto/mem_dbg.c:613:6: Taking true branch
611.   	    return;
612.   
613.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
614.   		{
615.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:615:3: 
613.   	if (options & V_CRYPTO_MDEBUG_TIME)
614.   		{
615. > 		lcl = localtime(&m->time);
616.   	
617.   		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:617:3: 
615.   		lcl = localtime(&m->time);
616.   	
617. > 		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
618.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
619.   		bufp += strlen(bufp);
