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


crypto/mem_dbg.c:591:1: start of procedure print_leak()
589.   	} MEM_LEAK;
590.   
591. > static void print_leak(const MEM *m, MEM_LEAK *l)
592.   	{
593.   	char buf[1024];

crypto/mem_dbg.c:594:2: 
592.   	{
593.   	char buf[1024];
594. > 	char *bufp = buf;
595.   	APP_INFO *amip;
596.   	int ami_cnt;

crypto/mem_dbg.c:597:2: 
595.   	APP_INFO *amip;
596.   	int ami_cnt;
597. > 	struct tm *lcl = NULL;
598.   	unsigned long ti;
599.   

crypto/mem_dbg.c:602:5: Taking false branch
600.   #define BUF_REMAIN (sizeof buf - (size_t)(bufp - buf))
601.   
602.   	if(m->addr == (char *)l->bio)
           ^
603.   	    return;
604.   

crypto/mem_dbg.c:605:6: Taking true branch
603.   	    return;
604.   
605.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
606.   		{
607.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:607:3: 
605.   	if (options & V_CRYPTO_MDEBUG_TIME)
606.   		{
607. > 		lcl = localtime(&m->time);
608.   	
609.   		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:609:3: 
607.   		lcl = localtime(&m->time);
608.   	
609. > 		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
610.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
611.   		bufp += strlen(bufp);
