Minor memory handling changes

This commit is contained in:
z3APA3A 2020-11-03 13:39:56 +03:00
parent dbbbe59ef2
commit 9356db8de6

View File

@ -1166,7 +1166,7 @@ struct ace * copyacl (struct ace *ac){
}
if(ac->next){
ac->next = itcopy(ac->next, sizeof(struct ace));
if(!ac->next) break;
if(!ac->next) goto ERRORCHAINS;
}
}
if(!ac) return ret;
@ -1184,6 +1184,7 @@ ERRORDSTNAMES:
ac->chains = NULL;
ERRORCHAINS:
ac->next = NULL;
ERRORCHAINS:
freeacl(ret);
return NULL;