I did a quick search of the forums and didn't see it posted and I'm sure it's been pointed out elsewhere, bu it appears there is a minor 'descriptor' leak in show_file in stock smaug in db.c. The file is opened but never closed.
...
send_to_pager( buf, ch );
num = 0;
}
}
}
should be
...
send_to_pager( buf, ch );
num = 0;
}
fclose(fp);
}
}
Again.. probably mentioned here before, but I'll just point it out again ;-)
...
send_to_pager( buf, ch );
num = 0;
}
}
}
should be
...
send_to_pager( buf, ch );
num = 0;
}
fclose(fp);
}
}
Again.. probably mentioned here before, but I'll just point it out again ;-)