mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
When strdup() fails partway through the loop, caml_raise_out_of_memory() longjmps without freeing the previously allocated strings or the array. Free all prior allocations before raising the exception. Co-authored-by: Claude <noreply@anthropic.com>