From 55969617ea225150a05b7bef9bc2bb413aaacdaa Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Fri, 2 Dec 2022 21:09:15 +0100 Subject: [PATCH] delete 3rd party payload properly #428 --- src/pfilter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pfilter.c b/src/pfilter.c index 30912a2..1131ace 100644 --- a/src/pfilter.c +++ b/src/pfilter.c @@ -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;