summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-31 10:02:52 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-31 10:02:52 +0800
commitead2e3ff2b3f3c961d4d7a5b4c64ccd2f754d275 (patch)
tree40c8723d76d7a0e987d66f2e9b4a15edb4caab53
parent9835c2e987f4544206591f2f9c43e5a08e2e51bf (diff)
Use xfree() for bios memory
-rw-r--r--src/i830_bios.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i830_bios.c b/src/i830_bios.c
index 0a28fb4a..02837d2e 100644
--- a/src/i830_bios.c
+++ b/src/i830_bios.c
@@ -270,7 +270,7 @@ i830_bios_get_aim_data_block (ScrnInfoPtr pScrn, int aim, int data_block)
aim_off = vbt->aim_offset[aim];
if (!aim_off)
{
- free (bios);
+ xfree (bios);
return NULL;
}
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "aim_off %d\n", aim_off);
@@ -284,15 +284,15 @@ i830_bios_get_aim_data_block (ScrnInfoPtr pScrn, int aim, int data_block)
unsigned char *aim = malloc (aimdb_block->aimdb_size + sizeof (struct aimdb_block));
if (!aim)
{
- free (bios);
+ xfree (bios);
return NULL;
}
memcpy (aim, aimdb_block, aimdb_block->aimdb_size + sizeof (struct aimdb_block));
- free (bios);
+ xfree (bios);
return aim;
}
bdb_off += aimdb_block->aimdb_size + sizeof (struct aimdb_block);
}
- free (bios);
+ xfree (bios);
return NULL;
}