diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 21b3c98..f4805fe 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -1994,8 +1994,8 @@ int main(int argc, char **argv) } if (bSkip) { - dp_entry_destroy(dpl); LIST_REMOVE(dpl,next); + dp_entry_destroy(dpl); desync_profile_count--; } diff --git a/tpws/tpws.c b/tpws/tpws.c index 6e31566..5e9244a 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -1284,8 +1284,8 @@ void parse_params(int argc, char *argv[]) } if (bSkip) { - dp_entry_destroy(dpl); LIST_REMOVE(dpl,next); + dp_entry_destroy(dpl); desync_profile_count--; }