mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 07:08:53 +01:00
Call delete_chain_and_references recursively.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4b76d8c462
commit
6551d67b2e
@ -1639,8 +1639,8 @@ sub decrement_reference_count( $$ ) {
|
||||
|
||||
if ( $toref && $toref->{referenced} ) {
|
||||
assert($toref->{references}{$chain} > 0 , $toref, $chain );
|
||||
delete $toref->{references}{$chain} unless --$toref->{references}{$chain};
|
||||
delete_chain( $toref ) unless ( keys %{$toref->{references}} );
|
||||
delete $toref->{references}{$chain} unless --$toref->{references}{$chain};
|
||||
delete_chain_and_references ( $toref ) unless ( keys %{$toref->{references}} );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user