From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oumer Teyeb Subject: memory cleanup after setverdict Date: Mon, 13 Oct 2003 14:24:10 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3F8A996A.6020707@kom.auc.dk> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Hi, I thought once the set verdict is called, the ipq_packet_msg_t param that was holding the packet will be freed by libipq. but I can access it after the setverdict is called, and also the data I have copied. For example, in a code like this ipq_packet_msg_t *m = ipq_get_packet(buf); ipq_set_verdict(handler, m->packet_id, NF_ACCEPT, 0, NULL); fwrite ((usnigned int *) (m+1), 1, m->data_len, file); I expected the third call to fail, but it doesn't. Then when is the memory used by the ipq_packet_msg_t parameter freed? Or am I responsible for freeing it myself? Regards, Oumer