mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Another memory leaks fix
This commit is contained in:
parent
a5b77bb0fe
commit
170ebfd354
3
ios.mm
3
ios.mm
@ -204,6 +204,7 @@ bool extractTzdata(CFURLRef homeUrl, CFURLRef archiveUrl, std::string destPath)
|
||||
|
||||
if (!success)
|
||||
{
|
||||
CFRelease(tarUrl);
|
||||
CFRelease(tzdataPathUrl);
|
||||
CFRelease(writeStream);
|
||||
return false;
|
||||
@ -256,6 +257,7 @@ bool extractTzdata(CFURLRef homeUrl, CFURLRef archiveUrl, std::string destPath)
|
||||
|
||||
if (!success)
|
||||
{
|
||||
CFRelease(tarUrl);
|
||||
CFRelease(tzdataPathUrl);
|
||||
return false;
|
||||
}
|
||||
@ -270,6 +272,7 @@ bool extractTzdata(CFURLRef homeUrl, CFURLRef archiveUrl, std::string destPath)
|
||||
if (res != 0)
|
||||
{
|
||||
printf("error file size\n");
|
||||
CFRelease(tarUrl);
|
||||
CFRelease(tzdataPathUrl);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user