mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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)
|
int *fd)
|
||||||
{
|
{
|
||||||
virLockManagerSanlockPrivatePtr priv = lock->privateData;
|
virLockManagerSanlockPrivatePtr priv = lock->privateData;
|
||||||
struct sanlk_options *opt;
|
struct sanlk_options *opt = NULL;
|
||||||
struct sanlk_resource **res_args;
|
struct sanlk_resource **res_args;
|
||||||
int res_count;
|
int res_count;
|
||||||
bool res_free = false;
|
bool res_free = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user