mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-05 15:33:07 +00:00
Dangling double free on waku create pubsub topic
This commit is contained in:
parent
8290daa5fd
commit
f80947d283
@ -71,7 +71,7 @@ pub fn waku_create_pubsub_topic(topic_name: &str, encoding: Encoding) -> WakuPub
|
|||||||
res
|
res
|
||||||
};
|
};
|
||||||
|
|
||||||
let result = unsafe { CString::from_raw(result_ptr) }
|
let result = unsafe { CStr::from_ptr(result_ptr) }
|
||||||
.to_str()
|
.to_str()
|
||||||
.expect("&str from result should always be extracted")
|
.expect("&str from result should always be extracted")
|
||||||
.parse()
|
.parse()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user