From d7b22c624bb04e585de4f06a3a32b98f45f7e4b8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 29 Apr 2013 09:11:02 +0200 Subject: smpp: Attempt to fix a memory leak of the msgb The smpp_pdu_rx method does not free the msgb. Introduce an annotation (currently defined to nothing) to indicate what will happen to a msgb. --- openbsc/include/openbsc/gsm_data.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index a4c6fbc68..d7db887ea 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -8,6 +8,9 @@ #include +/** annotations for msgb ownership */ +#define __uses + #define OBSC_NM_W_ACK_CB(__msgb) (__msgb)->cb[3] struct mncc_sock_state; -- cgit v1.2.3