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


crypto/mem_dbg.c:579:1: start of procedure print_leak()
577.   	} MEM_LEAK;
578.   
579. > static void print_leak(const MEM *m, MEM_LEAK *l)
580.   	{
581.   	char buf[1024];

crypto/mem_dbg.c:582:2: 
580.   	{
581.   	char buf[1024];
582. > 	char *bufp = buf;
583.   	APP_INFO *amip;
584.   	int ami_cnt;

crypto/mem_dbg.c:585:2: 
583.   	APP_INFO *amip;
584.   	int ami_cnt;
585. > 	struct tm *lcl = NULL;
586.   	unsigned long ti;
587.   

crypto/mem_dbg.c:588:5: Taking false branch
586.   	unsigned long ti;
587.   
588.   	if(m->addr == (char *)l->bio)
           ^
589.   	    return;
590.   

crypto/mem_dbg.c:591:6: Taking true branch
589.   	    return;
590.   
591.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
592.   		{
593.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:593:3: 
591.   	if (options & V_CRYPTO_MDEBUG_TIME)
592.   		{
593. > 		lcl = localtime(&m->time);
594.   	
595.   		sprintf(bufp, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:595:3: 
593.   		lcl = localtime(&m->time);
594.   	
595. > 		sprintf(bufp, "[%02d:%02d:%02d] ",
596.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
597.   		bufp += strlen(bufp);
