Minor memory handling changes

This commit is contained in:
z3APA3A committed 2020-11-03 13:39:56 +03:00
1 parent dbbbe59ef2
commit 9356db8de6
1 file changed
+2 -1
+2 -1
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;