Itamar Heim <iheim@redhat.com>
Dave Allan <dallan@redhat.com>
Markus Armbruster <armbru@redhat.com>
+ Ryota Ozaki <ozaki.ryota@gmail.com>
[....send patches to get your name here....]
Mon Mar 2 10:16:04 +0100 2009 Jim Meyering <meyering@redhat.com>
+ plug two config-parsing leaks
+ * src/storage_conf.c (virStoragePoolDefParsePerms): Free mode string.
+ (virStorageVolDefParsePerms): Likewise.
+ Patch by Ryota Ozaki.
+ * AUTHORS: Update.
+
don't dereference uninitialized pointer
* src/storage_conf.c (virStoragePoolDefParsePerms): Initialize
"ptr" to NULL.
} else {
char *end = NULL;
perms->mode = strtol(mode, &end, 8);
+ VIR_FREE(mode);
if (*end || perms->mode < 0 || perms->mode > 0777) {
virStorageReportError(conn, VIR_ERR_XML_ERROR,
"%s", _("malformed octal mode"));
} else {
char *end = NULL;
perms->mode = strtol(mode, &end, 8);
+ VIR_FREE(mode);
if (*end || perms->mode < 0 || perms->mode > 0777) {
virStorageReportError(conn, VIR_ERR_XML_ERROR,
"%s", _("malformed octal mode"));