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


crypto/mem_dbg.c:604:1: start of procedure print_leak_doall_arg()
602.   } MEM_LEAK;
603.   
604. > static void print_leak_doall_arg(const MEM *m, MEM_LEAK *l)
605.   {
606.       char buf[1024];

crypto/mem_dbg.c:607:5: 
605.   {
606.       char buf[1024];
607. >     char *bufp = buf;
608.       APP_INFO *amip;
609.       int ami_cnt;

crypto/mem_dbg.c:610:5: 
608.       APP_INFO *amip;
609.       int ami_cnt;
610. >     struct tm *lcl = NULL;
611.       CRYPTO_THREADID ti;
612.   

crypto/mem_dbg.c:616:9: Taking false branch
614.   
615.       /* Is one "leak" the BIO we were given? */
616.       if (m->addr == (char *)l->bio) {
               ^
617.           l->seen = 1;
618.           return;

crypto/mem_dbg.c:621:9: Taking true branch
619.       }
620.   
621.       if (options & V_CRYPTO_MDEBUG_TIME) {
               ^
622.           lcl = localtime(&m->time);
623.   

crypto/mem_dbg.c:622:9: 
620.   
621.       if (options & V_CRYPTO_MDEBUG_TIME) {
622. >         lcl = localtime(&m->time);
623.   
624.           BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",

crypto/mem_dbg.c:624:9: 
622.           lcl = localtime(&m->time);
623.   
624. >         BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
625.                        lcl->tm_hour, lcl->tm_min, lcl->tm_sec);
626.           bufp += strlen(bufp);
