aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-10-30 03:57:01 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-10-30 03:57:20 +0100
commit7d2843df4ced427b336b7013759e3998bde7d8fb (patch)
tree406e17f2a4751f2c9c8dce9df943607bed0bc011
parent2b0bf31183cda9821e1b5c3050df9db342e29a0b (diff)
fix double free in osmo_gsup_client_enc_send()
-rw-r--r--src/gsupclient/gsup_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsupclient/gsup_client.c b/src/gsupclient/gsup_client.c
index c8408fd..814d5a2 100644
--- a/src/gsupclient/gsup_client.c
+++ b/src/gsupclient/gsup_client.c
@@ -386,7 +386,8 @@ int osmo_gsup_client_enc_send(struct osmo_gsup_client *gsupc,
rc = osmo_gsup_client_send(gsupc, gsup_msgb);
if (rc) {
LOGP(DLGSUP, LOGL_ERROR, "Couldn't send GSUP message\n");
- goto error;
+ /* Do not free, osmo_gsup_client_send() already has. */
+ return rc;
}
return 0;