rspro_server.c: Fix memory leak in processing inbound RSPRO

We need to unconditionally free the msgb that gets handed into
sock_read_cb() by the ipa server.

Closes: OS#4096
Change-Id: I12b4a22854eea79c9e9c3e565dd4803e4dc0ed5a
This commit is contained in:
Harald Welte 2019-07-18 18:16:33 +02:00
parent f7442b5125
commit 6b990f914f
1 changed files with 1 additions and 0 deletions

View File

@ -613,6 +613,7 @@ static int sock_read_cb(struct ipa_server_conn *peer, struct msgb *msg)
default:
goto invalid;
}
msgb_free(msg);
return rc;
invalid: