Chameleon

Chameleon Commit Details

Date:2014-01-07 09:24:09 (5 years 6 months ago)
Author:Chuck Fry
Commit:2301
Parents: 2300
Message:setup_gma_devprop: fix memory leak
Changes:
M/branches/chucko/i386/libsaio/gma.c

File differences

branches/chucko/i386/libsaio/gma.c
354354
355355
356356
357
358
357
359358
360359
361360
362
363
361
364362
365363
366364
......
395393
396394
397395
398
399
400
396
401397
402398
403399
{
if (intel_gfx_chipsets[i].model == ((device_id << 16) | vendor_id))
{
sprintf(desc, "%s %s", INTEL_NAME, intel_gfx_chipsets[i].label_info);
desc[sizeof(desc) - 1] = '\0';
snprintf(desc, sizeof(desc), "%s %s", INTEL_NAME, intel_gfx_chipsets[i].label_info);
return desc;
}
}
sprintf(desc, "Unknown %s Graphics card", INTEL_NAME);
desc[sizeof(desc) - 1] = '\0';
snprintf(desc, sizeof(desc), "Unknown %s Graphics card", INTEL_NAME);
return desc;
}
string = devprop_create_string();
}
struct DevPropDevice *device = malloc(sizeof(struct DevPropDevice));
device = devprop_add_device(string, devicepath);
struct DevPropDevice *device = devprop_add_device(string, devicepath);
if (!device)
{
printf("Failed initializing dev-prop string dev-entry.\n");

Archive Download the corresponding diff file

Revision: 2301