Skip to content

Commit

Permalink
Fixes memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Oct 9, 2023
1 parent 671e76e commit 5bf6744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/escape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub(crate) fn string_conn(conn: &crate::Connection, from: &str) -> crate::errors
}
};

crate::ffi::to_string(raw)
crate::ffi::from_raw(raw)
}

#[deprecated(note = "Use libpq::Connection::escape_string instead")]
Expand Down

0 comments on commit 5bf6744

Please sign in to comment.