diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-10-30 03:57:01 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-10-30 03:57:20 +0100 |
commit | 7d2843df4ced427b336b7013759e3998bde7d8fb (patch) | |
tree | 406e17f2a4751f2c9c8dce9df943607bed0bc011 /src/gsupclient | |
parent | 2b0bf31183cda9821e1b5c3050df9db342e29a0b (diff) |
fix double free in osmo_gsup_client_enc_send()
Change-Id: Iee675fd498ab0867ac2411d9142358f513276182
Diffstat (limited to 'src/gsupclient')
-rw-r--r-- | src/gsupclient/gsup_client.c | 3 |
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; |