aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-02-09 16:15:06 +0100
committerAlexander Couzens <lynxis@fe80.eu>2021-02-09 16:48:03 +0100
commit3e2e4a017a7faa15e76233b09067627c0ea21cf1 (patch)
treee30eec78861c0dff3c625c2069a6e67528de79c8
parent5fa431ccd54713e48ee92468310d8b7d0808e667 (diff)
gprs_ns2_vty: fix memory leak of vty_binds
They never got freed, only removed from the vty_bind queue. Change-Id: I100897c32dc152f9acbb322782fae49b1f0bc030
-rw-r--r--src/gb/gprs_ns2_vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 978c73b5..36460802 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -128,6 +128,7 @@ static void vty_bind_free(struct vty_bind *vbind)
return;
llist_del(&vbind->list);
+ talloc_free(vbind);
}
static struct cmd_node ns_node = {