mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Minor memory handling changes
This commit is contained in:
parent
dbbbe59ef2
commit
9356db8de6
@ -1166,7 +1166,7 @@ struct ace * copyacl (struct ace *ac){
|
|||||||
}
|
}
|
||||||
if(ac->next){
|
if(ac->next){
|
||||||
ac->next = itcopy(ac->next, sizeof(struct ace));
|
ac->next = itcopy(ac->next, sizeof(struct ace));
|
||||||
if(!ac->next) break;
|
if(!ac->next) goto ERRORCHAINS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!ac) return ret;
|
if(!ac) return ret;
|
||||||
@ -1184,6 +1184,7 @@ ERRORDSTNAMES:
|
|||||||
ac->chains = NULL;
|
ac->chains = NULL;
|
||||||
ERRORCHAINS:
|
ERRORCHAINS:
|
||||||
ac->next = NULL;
|
ac->next = NULL;
|
||||||
|
ERRORCHAINS:
|
||||||
freeacl(ret);
|
freeacl(ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user