From: Jiri Denemark Date: Thu, 17 Jun 2010 14:45:28 +0000 (+0200) Subject: Do not free static buffer with UUID X-Git-Tag: v0.8.2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a7f8b2a924efd7df870fdcd29e2b53133a067e;p=thirdparty%2Flibvirt.git Do not free static buffer with UUID As anywhere else, uuid is defined as a fixed size array inside _virSecret structure; we shouldn't try to free it. --- diff --git a/src/datatypes.c b/src/datatypes.c index 8750406b08..36a2b55606 100644 --- a/src/datatypes.c +++ b/src/datatypes.c @@ -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;