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


crypto/mem_dbg.c:561:1: start of procedure print_leak()
559.   	} MEM_LEAK;
560.   
561. > static void print_leak(MEM *m, MEM_LEAK *l)
562.   	{
563.   	char buf[1024];

crypto/mem_dbg.c:564:2: 
562.   	{
563.   	char buf[1024];
564. > 	char *bufp = buf;
565.   	APP_INFO *amip;
566.   	int ami_cnt;

crypto/mem_dbg.c:567:2: 
565.   	APP_INFO *amip;
566.   	int ami_cnt;
567. > 	struct tm *lcl = NULL;
568.   	unsigned long ti;
569.   

crypto/mem_dbg.c:570:5: Taking false branch
568.   	unsigned long ti;
569.   
570.   	if(m->addr == (char *)l->bio)
           ^
571.   	    return;
572.   

crypto/mem_dbg.c:573:6: Taking true branch
571.   	    return;
572.   
573.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
574.   		{
575.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:575:3: 
573.   	if (options & V_CRYPTO_MDEBUG_TIME)
574.   		{
575. > 		lcl = localtime(&m->time);
576.   	
577.   		sprintf(bufp, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:577:3: 
575.   		lcl = localtime(&m->time);
576.   	
577. > 		sprintf(bufp, "[%02d:%02d:%02d] ",
578.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
579.   		bufp += strlen(bufp);
