mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
Initialize gpu_ids, fds_write, and entries to NULL before allocating them in init_parallel_restore_cmd() and init_parallel_restore_cmd_by_head(). The caller declares the struct on the stack without an initializer, so these members hold undefined values. If a later xzalloc() fails and the caller invokes free_parallel_restore_cmd(), it will call xfree() on those undefined pointers. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> |
||
|---|---|---|
| .. | ||
| amdgpu | ||
| cuda | ||