diff options
Diffstat (limited to 'src/osmo-bsc_nat')
-rw-r--r-- | src/osmo-bsc_nat/bsc_nat_ctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bsc_nat/bsc_nat_ctrl.c b/src/osmo-bsc_nat/bsc_nat_ctrl.c index 5f82a4110..5d551ac4a 100644 --- a/src/osmo-bsc_nat/bsc_nat_ctrl.c +++ b/src/osmo-bsc_nat/bsc_nat_ctrl.c @@ -220,7 +220,7 @@ static int forward_to_bsc(struct ctrl_cmd *cmd) int ret = CTRL_CMD_HANDLED; struct ctrl_cmd *bsc_cmd = NULL; struct bsc_connection *bsc; - struct bsc_cmd_list *pending; + struct bsc_cmd_list *pending = NULL; unsigned int nr; char *bsc_variable; @@ -293,6 +293,7 @@ static int forward_to_bsc(struct ctrl_cmd *cmd) cmd->reply = "no BSC with this nr"; err: ret = CTRL_CMD_ERROR; + talloc_free(pending); done: talloc_free(bsc_cmd); return ret; |