Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问当前有内存泄露的问题吗 #81

Closed
duzhen1996 opened this issue Mar 16, 2022 · 1 comment
Closed

请问当前有内存泄露的问题吗 #81

duzhen1996 opened this issue Mar 16, 2022 · 1 comment

Comments

@duzhen1996
Copy link

我们打算在一个系统中使用这个来频繁读一个配置文件。这里面会建立大量configor::json的临时对象。请问当前的实现的所有数据成员都在栈区吗,如果在堆区,其析构问题是不是已经搞定了?

我看您的文档里面没有提到析构的问题。

@Nomango
Copy link
Owner

Nomango commented May 27, 2022

@duzhen1996 会自动回收json里的数据的,默认使用std::allocator申请内存,一般不需要关注是如何回收的

@Nomango Nomango closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants