修正cpp调用rust时, 可能的memory leak

This commit is contained in:
CounterFire2023 2024-01-25 18:59:35 +08:00
parent f3cddf9f8e
commit 76a4c47151
8 changed files with 8 additions and 0 deletions

View File

@ -57,3 +57,5 @@ char *rsa_key_pair(void);
char *rsa_encrypt(const char *content, const char *p_key);
char *rsa_decrypt(const char *content, const char *s_key);
void free_cstr(char *s);

Binary file not shown.

View File

@ -57,3 +57,5 @@ char *rsa_key_pair(void);
char *rsa_encrypt(const char *content, const char *p_key);
char *rsa_decrypt(const char *content, const char *s_key);
void free_cstr(char *s);

Binary file not shown.

View File

@ -57,3 +57,5 @@ char *rsa_key_pair(void);
char *rsa_encrypt(const char *content, const char *p_key);
char *rsa_decrypt(const char *content, const char *s_key);
void free_cstr(char *s);

Binary file not shown.

View File

@ -57,3 +57,5 @@ char *rsa_key_pair(void);
char *rsa_encrypt(const char *content, const char *p_key);
char *rsa_decrypt(const char *content, const char *s_key);
void free_cstr(char *s);

Binary file not shown.