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


crypto/mem_dbg.c:672:1: start of procedure print_leak()
670.   	} MEM_LEAK;
671.   
672. > static void print_leak(const MEM *m, MEM_LEAK *l)
673.   	{
674.   	char buf[1024];

crypto/mem_dbg.c:675:2: 
673.   	{
674.   	char buf[1024];
675. > 	char *bufp = buf;
676.   	APP_INFO *amip;
677.   	int ami_cnt;

crypto/mem_dbg.c:678:2: 
676.   	APP_INFO *amip;
677.   	int ami_cnt;
678. > 	struct tm *lcl = NULL;
679.   	unsigned long ti;
680.   	void *tip;

crypto/mem_dbg.c:684:5: Taking false branch
682.   #define BUF_REMAIN (sizeof buf - (size_t)(bufp - buf))
683.   
684.   	if(m->addr == (char *)l->bio)
           ^
685.   	    return;
686.   

crypto/mem_dbg.c:687:6: Taking true branch
685.   	    return;
686.   
687.   	if (options & V_CRYPTO_MDEBUG_TIME)
            ^
688.   		{
689.   		lcl = localtime(&m->time);

crypto/mem_dbg.c:689:3: 
687.   	if (options & V_CRYPTO_MDEBUG_TIME)
688.   		{
689. > 		lcl = localtime(&m->time);
690.   	
691.   		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:691:3: 
689.   		lcl = localtime(&m->time);
690.   	
691. > 		BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
692.   			lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
693.   		bufp += strlen(bufp);
