mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-02 14:03:12 +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
|
||||
};
|
||||
|
||||
let result = unsafe { CString::from_raw(result_ptr) }
|
||||
let result = unsafe { CStr::from_ptr(result_ptr) }
|
||||
.to_str()
|
||||
.expect("&str from result should always be extracted")
|
||||
.parse()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user