]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virthreadpool: Copy job name
authorJiri Denemark <jdenemar@redhat.com>
Fri, 26 Nov 2021 15:22:43 +0000 (16:22 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 1 Dec 2021 13:36:29 +0000 (14:36 +0100)
commitfb96b6a0521e131aab1ac65ea01509c415bdf3c9
treecec8570b9b8c724ea11a486de0e3a6392af4a198
parent47ee68e8cc9e9b8549b846bc150ac1c92d7d7cf0
virthreadpool: Copy job name

Currently virThreadPoolNewFull relies on the caller to ensure the job
name outlives the thread pool. Which basically enforces static strings.
Let's drop this implicit requirement by making a copy of the job name.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virthreadpool.c