]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sys-utils: (save_adjtime): fix memory leak
authorMaks Mishin <maks.mishinFZ@gmail.com>
Thu, 17 Oct 2024 04:14:26 +0000 (07:14 +0300)
committerMaks Mishin <maks.mishinFZ@gmail.com>
Thu, 17 Oct 2024 04:14:47 +0000 (07:14 +0300)
commit4e4fd6a5fc84b8dc172e1ea67b28064c67376d1a
tree5d0797cc90ad1e526bb1c6546d4816529f2a2e7e
parent053c4aa6ef82f3df3cbd9940a7d816815236811a
sys-utils: (save_adjtime): fix memory leak

Dynamic memory, referenced by 'content', is allocated by calling function 'xasprintf'
and lost when function returns.

Found by the static analyzer Svace.
sys-utils/hwclock.c