mbox series

[0/2] qemu/timer: Clarify QEMUTimer new/free API

Message ID 20250125182425.59708-1-philmd@linaro.org (mailing list archive)
Headers show
Series qemu/timer: Clarify QEMUTimer new/free API | expand

Message

Philippe Mathieu-Daudé Jan. 25, 2025, 6:24 p.m. UTC
Update few QEMUTimer docstring and add a
sanity check during timer initialization.

Noticed trying to understand leaks in QDev
Realize -> Unrealize -> Realize transition.

Philippe Mathieu-Daudé (2):
  qemu/timer: Clarify timer_new*() must be freed with timer_free()
  qemu/timer: Sanity check timer_list in timer_init_full()

 include/qemu/timer.h | 12 +++++++++++-
 util/qemu-timer.c    |  1 +
 2 files changed, 12 insertions(+), 1 deletion(-)