GPRS: We have to do the msgb_free() in NS not Gb Proxy

As only NS-UNITDATA messages are ever passed into the Gb Proxy,
we need to do the msgb_free() at a much higher point in the calling
stack, i.e. inside the NS protocol layer.  This means it is now
the same logic as in OpenBSC itself.
This commit is contained in:
Harald Welte 2010-05-12 18:38:45 +00:00
parent fe4ab901cc
commit 91813cf214
1 changed files with 5 additions and 1 deletions

View File

@ -793,7 +793,11 @@ static int handle_nsip_read(struct bsc_fd *bfd)
if (!msg)
return error;
return gprs_ns_rcvmsg(nsi, msg, &saddr);
error = gprs_ns_rcvmsg(nsi, msg, &saddr);
msgb_free(msg);
return error;
}
static int handle_nsip_write(struct bsc_fd *bfd)