Message ID | 1ef32d467d228cc23445bdaa0a1c4e9fe1ef384f.1434971627.git.mjt@msgid.tls.msk.ru |
---|---|
State | New |
Headers | show |
diff --git a/hw/display/tcx.c b/hw/display/tcx.c index f3faf78..244f777 100644 --- a/hw/display/tcx.c +++ b/hw/display/tcx.c @@ -1017,6 +1017,7 @@ static void tcx_realizefn(DeviceState *dev, Error **errp) if (fcode_filename) { ret = load_image_targphys(fcode_filename, s->prom_addr, FCODE_MAX_ROM_SIZE); + g_free(fcode_filename); if (ret < 0 || ret > FCODE_MAX_ROM_SIZE) { error_report("tcx: could not load prom '%s'", TCX_ROM_FILE); }