diff options
Diffstat (limited to 'backends/platform/ps2')
-rw-r--r-- | backends/platform/ps2/irxboot.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/platform/ps2/irxboot.cpp b/backends/platform/ps2/irxboot.cpp index 15cb816c31..5ab7823e63 100644 --- a/backends/platform/ps2/irxboot.cpp +++ b/backends/platform/ps2/irxboot.cpp @@ -181,10 +181,8 @@ int loadIrxModules(int device, const char *irxPath, IrxReference **modules) { IrxReference *pos = resModules; while (pos < curModule) { if ((pos->fileRef->flags & TYPEMASK) == (irxFiles[i].flags & TYPEMASK)) { - if (pos->path) - free(pos->path); - if (pos->buffer) - free(pos->buffer); + free(pos->path); + free(pos->buffer); IrxReference *copyPos = pos; while (copyPos < curModule) { |