]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Do not free static buffer with UUID
authorJiri Denemark <jdenemar@redhat.com>
Thu, 17 Jun 2010 14:45:28 +0000 (16:45 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 21 Jun 2010 08:11:34 +0000 (10:11 +0200)
As anywhere else, uuid is defined as a fixed size array inside
_virSecret structure; we shouldn't try to free it.

src/datatypes.c

index 8750406b08b46e19d5642a3df4abb57a0e41aa17..36a2b55606ec6688ec908d861389afcb567fab25 100644 (file)
@@ -1271,7 +1271,6 @@ virGetSecret(virConnectPtr conn, const unsigned char *uuid,
 error:
     if (ret != NULL) {
         VIR_FREE(ret->usageID);
-        VIR_FREE(ret->uuid);
         VIR_FREE(ret);
     }
     return NULL;