diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-22 19:31:54 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-22 19:32:15 +0200 |
commit | 49924f0a79db69c7e180543299a9e1078d5c16ac (patch) | |
tree | 64fcb0c6c702bff160d71689be649e8d52d71887 | |
parent | 24e0217c2eca8e3197804a000c9b237daebc9f0c (diff) |
e1_input: Fix line not removed from e1inp_line_list when freed
This was not an observable issue so far because both osmo-bts and
osmo-bsc used to keep the same line created once, keeping at least 1
reference count to it.
Change-Id: I1314d6b917ecb622994507475eb894e649a1a2ad
-rw-r--r-- | src/e1_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/e1_input.c b/src/e1_input.c index 93ab446..fd3082e 100644 --- a/src/e1_input.c +++ b/src/e1_input.c @@ -452,6 +452,8 @@ static int e1inp_line_use_cb(struct osmo_use_count_entry *use_count_entry, int32 if (line->driver_data) talloc_unlink(line, line->driver_data); } + + llist_del(&line->list); talloc_free(line); return 0; } |