]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu/timer: Clarify timer_new*() must be freed with timer_free()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 25 Jan 2025 18:24:24 +0000 (19:24 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 14 Feb 2025 05:49:06 +0000 (08:49 +0300)
commitc996dacfa1fd090910f8614c06df2a350b15211a
tree92bb5e4839725d6ba1a89adfbc4034bb1ad08047
parent9038ac0c5c4ce8f6cf49e1146a79b633dc534b7d
qemu/timer: Clarify timer_new*() must be freed with timer_free()

There was not mention QEMUTimer created with timer_new*() must
be released with timer_free() instead of g_free(), because then
active timers are removed from the active list. Update the
documentation mentioning timer_free().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/qemu/timer.h