Index: channels/chan_dahdi.c =================================================================== --- channels/chan_dahdi.c (revision 401410) +++ channels/chan_dahdi.c (working copy) @@ -1221,7 +1221,9 @@ if (res < 0) { if (errno != ELAST) { ast_log(LOG_WARNING, "read returned error: %s\n", strerror(errno)); - callerid_free(p->cs); + return -1; + } else { + ast_log(LOG_WARNING, "read returned error: ELAST\n"); return -1; } }