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

Free memory after dequeue #347

Open
Kyle-SZJVSCH opened this issue May 28, 2023 · 1 comment
Open

Free memory after dequeue #347

Kyle-SZJVSCH opened this issue May 28, 2023 · 1 comment

Comments

@Kyle-SZJVSCH
Copy link

Hello,

If the OCI_MsgGetEnqueueTime function is called after receiving a message from AQ, the OCI_Cleanup function will generate an error Error occurred at OcilibEnvironmentCleanup: Found 48 non freed allocated bytes. Do I have to release it explicitly?

Example part of code:

            OCI_Inititalize 
            int priority = OCI_MsgGetPriority( msg ) ;
            time_t enq_time ;
            time_t deq_time = time(nullptr) ;
            std::string message_id ;
            std::shared_ptr<ms::database::Object> payload ;
            auto date = OCI_MsgGetEnqueueTime(msg) ;
            OCI_DateToCTime(date, nullptr, &enq_time) ;
            auto obj = OCI_MsgGetObject(msg) ;
            OCI_Cleanup

@vrogier
Copy link
Owner

vrogier commented Jul 14, 2023

Hi,

Thanks for reporting the issue.
It has been resolved in current development branch 4.7.7.

Regards,

Vincent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants