delete 3rd party payload properly #428

This commit is contained in:
Geoffrey Merck 2022-12-02 21:09:15 +01:00
parent 30a904e50e
commit 55969617ea
1 changed files with 3 additions and 1 deletions

View File

@ -243,7 +243,9 @@ int pfilter (int from_chan, int to_chan, char *filter, packet_t pp, int is_aprs)
return (0);
}
return pfilter(from_chan, to_chan, filter, pp_payload, is_aprs);
result = pfilter(from_chan, to_chan, filter, pp_payload, is_aprs);
ax25_delete(pp_payload);
return result;
}
pfstate.pp = pp;