nfqws,tpws: fix crash

This commit is contained in:
bol-van 2024-11-23 14:14:12 +03:00
parent fedb62df66
commit 9c8662b25e
2 changed files with 2 additions and 2 deletions

View File

@ -1994,8 +1994,8 @@ int main(int argc, char **argv)
} }
if (bSkip) if (bSkip)
{ {
dp_entry_destroy(dpl);
LIST_REMOVE(dpl,next); LIST_REMOVE(dpl,next);
dp_entry_destroy(dpl);
desync_profile_count--; desync_profile_count--;
} }

View File

@ -1284,8 +1284,8 @@ void parse_params(int argc, char *argv[])
} }
if (bSkip) if (bSkip)
{ {
dp_entry_destroy(dpl);
LIST_REMOVE(dpl,next); LIST_REMOVE(dpl,next);
dp_entry_destroy(dpl);
desync_profile_count--; desync_profile_count--;
} }