mirror of
https://github.com/Alcaro/Flips.git
synced 2026-09-04 08:44:33 -05:00
Update UPS handler, wipe some outdated cruft
This commit is contained in:
@@ -197,6 +197,8 @@ result apply(const file& patch_, const file& source_, file& target_, bool accept
|
||||
|
||||
target_.write(out->v());
|
||||
free(out->ptr);
|
||||
patch_.unmap(patch.v());
|
||||
source_.unmap(in.v());
|
||||
return error;
|
||||
#undef read8
|
||||
#undef decodeto
|
||||
@@ -205,6 +207,8 @@ result apply(const file& patch_, const file& source_, file& target_, bool accept
|
||||
|
||||
exit:
|
||||
free(out->ptr);
|
||||
patch_.unmap(patch.v());
|
||||
source_.unmap(in.v());
|
||||
out->len=0;
|
||||
out->ptr=NULL;
|
||||
if (metadata)
|
||||
|
||||
Reference in New Issue
Block a user