commit | 7d2843df4ced427b336b7013759e3998bde7d8fb | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <neels@hofmeyr.de> | Wed Oct 30 03:57:01 2019 +0100 |
committer | Neels Hofmeyr <neels@hofmeyr.de> | Wed Oct 30 03:57:20 2019 +0100 |
tree | 406e17f2a4751f2c9c8dce9df943607bed0bc011 | |
parent | 2b0bf31183cda9821e1b5c3050df9db342e29a0b [diff] |
fix double free in osmo_gsup_client_enc_send() Change-Id: Iee675fd498ab0867ac2411d9142358f513276182
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 @@ 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;