Free the structure with the correct function call

This commit is contained in:
Chris Young 2017-06-08 19:57:18 +01:00
parent 103f99c210
commit a8348f3bc9

View File

@ -338,7 +338,7 @@ int64 GetFileSize(BPTR fh)
ExamineFH(fh, fib); ExamineFH(fh, fib);
size = fib->fib_Size; size = fib->fib_Size;
free(fib); FreeDosObject(DOS_FIB, fib);
return (int64)size; return (int64)size;
} }