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


crypto/mem_dbg.c:553:1: start of procedure print_leak()
551.   	} MEM_LEAK;
552.   
553. > static void print_leak(MEM *m, MEM_LEAK *l)
554.   	{
555.   	char buf[1024];

crypto/mem_dbg.c:556:2: 
554.   	{
555.   	char buf[1024];
556. > 	char *bufp = buf;
557.   	APP_INFO *amip;
558.   	int ami_cnt;

crypto/mem_dbg.c:559:2: 
557.   	APP_INFO *amip;
558.   	int ami_cnt;
559. > 	struct tm *lcl = NULL;
560.   	unsigned long ti;
561.   

crypto/mem_dbg.c:562:5: Taking false branch
560.   	unsigned long ti;
561.   
562.   	if(m->addr == (char *)l->bio)
           ^
563.   	    return;
564.   

crypto/mem_dbg.c:565:6: Taking true branch
563.   	    return;
564.   
565.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
566.   		{
567.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:567:3: 
565.   	if (options & V_CRYPTO_MDEBUG_TIME)
566.   		{
567. > 		lcl = localtime(&m->time);
568.   	
569.   		sprintf(bufp, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:569:3: 
567.   		lcl = localtime(&m->time);
568.   	
569. > 		sprintf(bufp, "[%02d:%02d:%02d] ",
570.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
571.   		bufp += strlen(bufp);
