Message ID | 1432816784-12436-5-git-send-email-zhaoshenglong@huawei.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/display/tcx.c b/hw/display/tcx.c index a9f9f66..ec0aa0d 100644 --- a/hw/display/tcx.c +++ b/hw/display/tcx.c @@ -1015,8 +1015,9 @@ static void tcx_realizefn(DeviceState *dev, Error **errp) ret = load_image_targphys(fcode_filename, s->prom_addr, FCODE_MAX_ROM_SIZE); if (ret < 0 || ret > FCODE_MAX_ROM_SIZE) { - error_report("tcx: could not load prom '%s'", TCX_ROM_FILE); + error_report("tcx: could not load prom '%s'", fcode_filename); } + g_free(fcode_filename); } /* 0/DFB8 : 8-bit plane */