mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-01 12:56:32 +00:00
Fix bugs in async rpc
This commit is contained in:
@@ -28,7 +28,7 @@ typedef struct {
|
||||
|
||||
/* rpc_priv is used by the rpc_client to store information related to
|
||||
* this rpc call. */
|
||||
static int transport_send(void *arg, const char *fcall_str,
|
||||
static int transport_send(void *arg, char *fcall_str,
|
||||
size_t fcall_len, void *rpc_priv)
|
||||
{
|
||||
TcpTransport *trans = arg;
|
||||
@@ -49,6 +49,7 @@ static int transport_send(void *arg, const char *fcall_str,
|
||||
}
|
||||
|
||||
trans->rpc_priv = rpc_priv;
|
||||
g_free (fcall_str);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user