[PATCH 1/1] capabilities: reduce scope in virCapabilitiesInitCaches()

Ján Tomko jtomko at redhat.com
Mon Mar 20 13:26:56 UTC 2023


On a Monday in 2023, Shaleen Bathla wrote:
>over-writing a variable in inner while-loop without freeing previous memory
>leaks it over time.
>To fix this, we can just change scope of bank variable to the inner loop.
>
>Signed-off-by: Shaleen Bathla <shaleen.bathla at oracle.com>
>---
> src/conf/capabilities.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230320/96b4d033/attachment.sig>


More information about the libvir-list mailing list