fix use-after-free issue found by Coverity static analysis (thanks to Jiri Popelka)
diff --git a/libebtc.c b/libebtc.c
index 4a9a79d..f66ebef 100644
--- a/libebtc.c
+++ b/libebtc.c
@@ -473,8 +473,8 @@
 		cc->prev->next = cc->next;
 		cc->next->prev = cc->prev;
 		free(cc);
-	}
-	cc->type = CNT_DEL;
+	} else
+		cc->type = CNT_DEL;
 }
 
 void ebt_empty_chain(struct ebt_u_entries *entries)