c07cc4f
Avoid potential memory leak in spice session If j == -1, the memory allocated for rect will leak. So move the allocation after the test. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>