mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
sanlock: Avoid freeing uninitialized value
https://bugzilla.redhat.com/show_bug.cgi?id=1136788 Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
0e1a1a8c47
commit
760cf5d30e
@ -885,7 +885,7 @@ static int virLockManagerSanlockAcquire(virLockManagerPtr lock,
|
||||
int *fd)
|
||||
{
|
||||
virLockManagerSanlockPrivatePtr priv = lock->privateData;
|
||||
struct sanlk_options *opt;
|
||||
struct sanlk_options *opt = NULL;
|
||||
struct sanlk_resource **res_args;
|
||||
int res_count;
|
||||
bool res_free = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user