fixed memory leak
This commit is contained in:
parent
5e8683e64d
commit
8a492c1e2f
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ struct HashtableNode* ipfs_resolver_remote_get(const char* path, struct Hashtabl
|
|||
size_t message_protobuf_size = libp2p_message_protobuf_encode_size(message);
|
||||
unsigned char message_protobuf[message_protobuf_size];
|
||||
libp2p_message_protobuf_encode(message, message_protobuf, message_protobuf_size, &message_protobuf_size);
|
||||
libp2p_message_free(message);
|
||||
struct SessionContext session_context;
|
||||
session_context.insecure_stream = stream;
|
||||
session_context.default_stream = stream;
|
||||
|
|
Loading…
Reference in a new issue