John Baldwin 1187e46d1b nvmecontrol wdc: Don't pass a bogus pointer to free().
wdc_get_dui_log_size allocates a buffer and then advances the
returned pointer.  Passing this advanced pointer to free() is UB,
so save the original pointer to pass to free() instead.

Reviewed by:	imp
Reported by:	GCC 12 -Wfree-nonheap-object
Differential Revision:	https://reviews.freebsd.org/D36827
2022-10-03 16:10:44 -07:00
..
2022-07-18 22:06:15 +00:00
2022-05-07 09:55:40 -06:00
2022-01-12 13:52:23 +08:00
2022-09-06 16:22:03 -07:00
2022-06-17 10:36:17 +01:00
2022-09-06 09:06:51 +02:00
2021-12-07 11:40:22 +01:00
2022-01-08 12:45:46 +02:00
2021-09-11 20:04:52 +08:00
2022-06-30 16:22:01 +02:00
2022-07-19 08:59:53 -07:00