fix double free in osmo_gsup_client_enc_send()

Change-Id: Iee675fd498ab0867ac2411d9142358f513276182
This commit is contained in:
Neels Hofmeyr 2019-10-30 03:57:01 +01:00
parent 2b0bf31183
commit 7d2843df4c
1 changed files with 2 additions and 1 deletions

View File

@ -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;