Skip to content

Commit 5596961

Browse files
committed
delete 3rd party payload properly #428
1 parent 30a904e commit 5596961

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/pfilter.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ int pfilter (int from_chan, int to_chan, char *filter, packet_t pp, int is_aprs)
243243
return (0);
244244
}
245245

246-
return pfilter(from_chan, to_chan, filter, pp_payload, is_aprs);
246+
result = pfilter(from_chan, to_chan, filter, pp_payload, is_aprs);
247+
ax25_delete(pp_payload);
248+
return result;
247249
}
248250

249251
pfstate.pp = pp;

0 commit comments

Comments
 (0)