Review at  https://gerrit.osmocom.org/7758

bsc_nat: forward_to_bsc: Fix memleak on send failure

Change-Id: I56235eb05e4beed1bf9151319b64d67de4718e36
---
M src/osmo-bsc_nat/bsc_nat_ctrl.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/58/7758/1

diff --git a/src/osmo-bsc_nat/bsc_nat_ctrl.c b/src/osmo-bsc_nat/bsc_nat_ctrl.c
index 5f82a41..eef7671 100644
--- a/src/osmo-bsc_nat/bsc_nat_ctrl.c
+++ b/src/osmo-bsc_nat/bsc_nat_ctrl.c
@@ -293,6 +293,7 @@
        cmd->reply = "no BSC with this nr";
 err:
        ret = CTRL_CMD_ERROR;
+       talloc_free(pending);
 done:
        talloc_free(bsc_cmd);
        return ret;

-- 
To view, visit https://gerrit.osmocom.org/7758
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56235eb05e4beed1bf9151319b64d67de4718e36
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pes...@sysmocom.de>

Reply via email to