Skip to content

Commit

Permalink
Merge pull request #388 from icmccorm/master
Browse files Browse the repository at this point in the history
Fixed memory leak in zmq::z85_decode
  • Loading branch information
Jasper-Bekkers authored Dec 12, 2024
2 parents 4b873ae + 53fa9ba commit eac155e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ pub fn z85_decode(data: &str) -> result::Result<Vec<u8>, DecodeError> {
let c_str = ffi::CString::new(data)?;

unsafe {
zmq_sys::zmq_z85_decode(dest.as_mut_ptr(), c_str.into_raw());
zmq_sys::zmq_z85_decode(dest.as_mut_ptr(), c_str.as_ptr());
}

Ok(dest)
Expand Down

0 comments on commit eac155e

Please sign in to comment.