Bryan Drewery
70f82cfbaf
Fix M_FILEDESC leak in fdgrowtable() introduced in r244510.
...
fdgrowtable() now only reallocates fd_map when necessary.
This fixes fdgrowtable() to use the same logic as fdescfree() for
when to free the fd_map. The logic in fdescfree() is intended to
not free the initial static allocation, however the fd_map grows
at a slower rate than the table does. The table is intended to hold
20 fd, but its initial map has many more slots than 20. The slot
sizing causes NDSLOTS(20) through NDSLOTS(63) to be 1 which matches
NDSLOTS(20), so fdescfree() was assuming that the fd_map was still
the initial allocation and not freeing it.
This partially reverts r244510 by reintroducing some of the logic
it removed in fdgrowtable().
Reviewed by: mjg
Approved by: bapt (mentor)
MFC after: 2 weeks
2014-02-17 00:00:39 +00:00
..
2012-08-21 18:13:09 +00:00
2014-01-28 01:49:49 +00:00
2012-08-15 15:42:57 +00:00
2012-07-22 13:41:45 +00:00
2013-09-09 18:11:59 +00:00
2013-09-09 18:11:59 +00:00
2013-10-08 06:54:52 +00:00
2014-01-28 01:49:49 +00:00
2013-06-30 19:08:06 +00:00
2013-06-17 09:49:07 +00:00
2013-11-26 08:46:27 +00:00
2013-12-16 13:52:18 +00:00
2013-09-20 23:06:21 +00:00
2013-10-22 10:40:26 +00:00
2014-02-12 00:53:38 +00:00
2013-06-25 18:44:15 +00:00
2012-10-22 17:50:54 +00:00
2014-02-17 00:00:39 +00:00
2013-11-01 10:32:33 +00:00
2013-03-13 06:42:01 +00:00
2014-01-17 05:15:44 +00:00
2013-11-26 08:46:27 +00:00
2013-12-15 04:11:43 +00:00
2013-12-18 01:41:52 +00:00
2012-10-22 17:50:54 +00:00
2013-06-15 10:08:34 +00:00
2013-10-04 06:55:06 +00:00
2014-01-31 17:39:51 +00:00
2013-06-15 06:45:17 +00:00
2013-08-17 17:02:43 +00:00
2014-02-05 18:13:27 +00:00
2013-09-18 19:26:08 +00:00
2013-12-19 03:48:36 +00:00
2013-11-25 07:38:45 +00:00
2013-11-25 07:38:45 +00:00
2013-11-25 07:38:45 +00:00
2013-10-10 16:11:34 +00:00
2013-12-04 16:38:40 +00:00
2012-08-22 20:01:57 +00:00
2013-11-25 07:38:45 +00:00
2013-07-24 09:45:31 +00:00
2013-08-29 16:41:40 +00:00
2012-03-28 20:58:30 +00:00
2013-10-26 17:58:36 +00:00
2013-11-26 08:46:27 +00:00
2014-02-11 21:57:37 +00:00
2012-11-14 10:33:12 +00:00
2013-11-26 08:46:27 +00:00
2013-08-15 20:19:17 +00:00
2012-10-26 16:01:08 +00:00
2013-12-13 20:54:45 +00:00
2013-11-25 07:38:45 +00:00
2014-02-05 18:13:27 +00:00
2013-11-26 08:49:53 +00:00
2013-08-22 07:39:53 +00:00
2013-12-05 03:01:41 +00:00
2013-11-30 15:08:35 +00:00
2012-12-09 04:54:22 +00:00
2013-11-25 07:38:45 +00:00
2013-11-26 14:00:50 +00:00
2014-02-07 13:47:33 +00:00
2013-03-04 11:09:56 +00:00
2012-05-26 20:03:47 +00:00
2013-11-26 08:46:27 +00:00
2013-07-21 19:43:52 +00:00
2014-02-14 23:19:51 +00:00
2013-06-13 09:33:22 +00:00
2014-02-13 22:24:36 +00:00
2012-08-10 18:19:57 +00:00
2013-09-09 18:11:59 +00:00
2013-09-09 18:11:59 +00:00
2013-06-28 21:00:08 +00:00
2013-12-15 23:19:42 +00:00
2013-12-29 17:08:30 +00:00
2014-02-01 20:46:35 +00:00
2012-04-17 14:54:00 +00:00
2012-03-13 20:27:48 +00:00
2013-02-05 20:08:33 +00:00
2013-10-27 21:39:16 +00:00
2013-10-08 11:05:26 +00:00
2013-08-07 06:21:20 +00:00
2013-11-14 22:59:20 +00:00
2014-02-10 19:59:46 +00:00
2013-11-26 08:46:27 +00:00
2012-06-22 07:06:40 +00:00
2012-06-25 05:41:16 +00:00
2014-02-14 20:54:03 +00:00
2013-10-27 16:20:52 +00:00
2014-02-05 18:13:27 +00:00
2013-03-04 16:07:55 +00:00
2013-08-25 10:57:09 +00:00
2012-12-05 08:04:20 +00:00
2012-03-19 00:36:32 +00:00
2013-11-12 20:13:10 +00:00
2014-02-10 19:59:46 +00:00
2013-05-12 04:05:01 +00:00
2014-02-12 00:53:38 +00:00
2012-05-31 17:27:05 +00:00
2013-09-22 23:47:56 +00:00
2014-01-13 04:41:08 +00:00
2014-02-05 18:13:27 +00:00
2014-02-05 18:13:27 +00:00
2013-11-25 07:38:45 +00:00
2013-11-28 18:56:34 +00:00
2013-12-24 18:42:26 +00:00
2013-12-17 13:37:02 +00:00
2013-11-26 08:46:27 +00:00
2013-09-16 06:25:54 +00:00
2013-08-30 07:37:45 +00:00
2013-12-11 21:48:04 +00:00
2014-01-20 01:59:35 +00:00
2013-09-05 03:36:57 +00:00
2013-11-15 19:55:35 +00:00
2013-09-09 18:11:59 +00:00
2013-11-30 15:08:35 +00:00
2013-09-19 18:53:42 +00:00
2013-10-26 17:58:36 +00:00
2013-09-19 18:56:00 +00:00
2013-09-19 18:53:42 +00:00
2013-09-21 23:06:36 +00:00
2013-11-12 17:46:11 +00:00
2013-08-15 07:54:31 +00:00
2012-10-25 09:05:21 +00:00
2013-12-20 19:45:51 +00:00
2013-09-01 23:34:53 +00:00
2013-03-02 21:11:30 +00:00
2012-12-05 08:04:20 +00:00
2014-01-16 13:42:50 +00:00
2013-11-15 19:55:35 +00:00
2013-09-05 00:09:56 +00:00
2014-01-24 21:05:07 +00:00
2014-01-17 11:09:05 +00:00
2014-01-16 13:45:41 +00:00
2014-01-17 05:26:55 +00:00
2013-09-11 18:22:30 +00:00
2013-09-05 00:09:56 +00:00
2013-09-05 11:59:23 +00:00
2014-01-21 03:24:52 +00:00
2013-12-27 17:09:59 +00:00
2013-08-27 01:31:12 +00:00
2013-05-31 00:43:41 +00:00
2013-02-21 19:02:50 +00:00
2013-09-05 00:09:56 +00:00
2013-01-14 05:41:40 +00:00
2013-06-29 05:05:57 +00:00
2013-11-26 08:46:27 +00:00
2013-10-03 22:52:03 +00:00
2013-12-25 22:14:42 +00:00
2013-10-09 18:43:29 +00:00
2014-01-30 18:04:39 +00:00
2013-12-17 17:31:16 +00:00
2013-11-09 20:36:29 +00:00