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


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

crypto/mem_dbg.c:591:5: 
589.   {
590.       char buf[1024];
591. >     char *bufp = buf;
592.       APP_INFO *amip;
593.       int ami_cnt;

crypto/mem_dbg.c:594:5: 
592.       APP_INFO *amip;
593.       int ami_cnt;
594. >     struct tm *lcl = NULL;
595.       CRYPTO_THREADID ti;
596.   

crypto/mem_dbg.c:600:9: Taking false branch
598.   
599.       /* Is one "leak" the BIO we were given? */
600.       if (m->addr == (char *)l->bio) {
               ^
601.           l->seen = 1;
602.           return;

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

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

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