Based on Jesper Dangaard Brouer's patch. Index: libiptc/libiptc.c =================================================================== --- libiptc/libiptc.c (revisión: 6644) +++ libiptc/libiptc.c (copia de trabajo) @@ -1543,6 +1543,14 @@ c->num_rules--; iptcc_delete_rule(i); + /* Since iptcc_map_target increments refcounting of + * the target chain used by the fake rule, once we + * have matched it against the real rule, do not forget + * to drop the refcount that the fake rule holds */ + if (r->type == IPTCC_R_JUMP + && r->jump) + r->jump->references--; + set_changed(*handle); free(r); return 1;