aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-24 09:45:11 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-24 09:45:11 +0200
commit14078eaffe37689061ea92963bb0a1da67fb9638 (patch)
tree8eae1e0913e6dddea520b74844637dfa24e42a44 /src
parent3bc78855390d1fde57615572a7ca05c7dcb5e226 (diff)
LAPD: Add function to release/free a LAPD instance
Diffstat (limited to 'src')
-rw-r--r--src/input/lapd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input/lapd.c b/src/input/lapd.c
index 0287e14..d94af58 100644
--- a/src/input/lapd.c
+++ b/src/input/lapd.c
@@ -730,3 +730,10 @@ struct lapd_instance *lapd_instance_alloc(int network_side,
return li;
}
+
+void lapd_instance_free(struct lapd_instance *li)
+{
+ /* tei and sapis are allocated hierarchically of the lapd
+ * instance, so one free is sufficient here */
+ talloc_free(li);
+}