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.
This commit is contained in:
Jiri Denemark 2010-06-17 16:45:28 +02:00
parent c5ec45a3a4
commit 72a7f8b2a9

View File

@ -1271,7 +1271,6 @@ virGetSecret(virConnectPtr conn, const unsigned char *uuid,
error: error:
if (ret != NULL) { if (ret != NULL) {
VIR_FREE(ret->usageID); VIR_FREE(ret->usageID);
VIR_FREE(ret->uuid);
VIR_FREE(ret); VIR_FREE(ret);
} }
return NULL; return NULL;