1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 16:23:13 +02:00

Zip links fixes

This commit is contained in:
codemastr
2003-03-18 17:45:26 +00:00
parent df15fa62e1
commit dc7564d5b8
2 changed files with 15 additions and 15 deletions
+1
View File
@@ -1989,3 +1989,4 @@ seen. gmtime warning still there
flooder is banned for and how much data (in KB) the user must send before being banned.
This should fix (#0000767) reported by ora.
- Updated some documentation
- (Hopefully) fixed some Ziplinks problems
+14 -15
View File
@@ -117,21 +117,20 @@ int zip_init(aClient *cptr, int compressionlevel)
*/
void zip_free(aClient *cptr)
{
if (cptr->zip)
{
if (cptr->zip->in) {
inflateEnd(cptr->zip->in);
MyFree(cptr->zip->in);
cptr->zip->in = NULL;
}
if (cptr->zip->out) {
deflateEnd(cptr->zip->out);
MyFree(cptr->zip->out);
cptr->zip->out = NULL;
}
MyFree(cptr->zip);
cptr->zip = NULL;
}
ClearZipped(cptr);
if (cptr->zip)
{
if (cptr->zip->in)
inflateEnd(cptr->zip->in);
MyFree(cptr->zip->in);
cptr->zip->in = NULL;
if (cptr->zip->out)
deflateEnd(cptr->zip->out);
MyFree(cptr->zip->out);
cptr->zip->out = NULL;
MyFree(cptr->zip);
cptr->zip = NULL;
}
}
/*