aboutsummaryrefslogtreecommitdiffstats
path: root/src/libbsc/bsc_ctrl_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbsc/bsc_ctrl_commands.c')
-rw-r--r--src/libbsc/bsc_ctrl_commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libbsc/bsc_ctrl_commands.c b/src/libbsc/bsc_ctrl_commands.c
index 64f458920..171feaff0 100644
--- a/src/libbsc/bsc_ctrl_commands.c
+++ b/src/libbsc/bsc_ctrl_commands.c
@@ -149,11 +149,13 @@ static int set_net_mcc_mnc_apply(struct ctrl_cmd *cmd, void *data)
if (osmo_mcc_from_str(mcc_str, &plmn.mcc)) {
cmd->reply = "Error while decoding MCC";
+ talloc_free(tmp);
return CTRL_CMD_ERROR;
}
if (osmo_mnc_from_str(mnc_str, &plmn.mnc, &plmn.mnc_3_digits)) {
cmd->reply = "Error while decoding MNC";
+ talloc_free(tmp);
return CTRL_CMD_ERROR;
}