]> Git Repo - qemu.git/commit
vfio/platform: fix use of freed memory
authorPhilippe Mathieu-Daudé <[email protected]>
Wed, 26 Jul 2017 17:38:17 +0000 (11:38 -0600)
committerAlex Williamson <[email protected]>
Wed, 26 Jul 2017 17:38:17 +0000 (11:38 -0600)
commit418c69813f027cb1408aa2759022f5ca170a8c8c
tree546d0e5ee90924b8898fde93635f4d5d66df3499
parent522fd24ca030c27c591dafedd65c1dfd51e40450
vfio/platform: fix use of freed memory

free the data _after_ using it.

hw/vfio/platform.c:126:29: warning: Use of memory after it is freed
        qemu_set_fd_handler(*pfd, NULL, NULL, NULL);
                            ^~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
hw/vfio/platform.c
This page took 0.034151 seconds and 4 git commands to generate.