Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - [MME] Freeing memory of mme_explore_info_t structures: (2 Items)
   
[MME] Freeing memory of mme_explore_info_t structures  
Hi all,

will the memory allocated for the mme_explore_info_t structures retrieved during an explore session - i.e. calling 
multiple times mme_explore_info_get() -  be freed with the call mme_explore_end() - all structures related to the closed
 mme_explore_hdl?

Kind Regards,
Sebastian
Re: [MME] Freeing memory of mme_explore_info_t structures  
> will the memory allocated for the mme_explore_info_t structures retrieved 
> during an explore session - i.e. calling multiple times mme_explore_info_get()
>  -  be freed with the call mme_explore_end() - all structures related to the 
> closed mme_explore_hdl?

Yes, all will be freed when you call mme_explore_end(). The MME uses a single buffer that can contain information about 
multiple items (when you call info_get() the first time, it can transfer multiple items from the MME to the client lib 
and keep them cached). The next time you call info_get() it might not even result in a context switch to the MME, 
instead the information might already be in the cache in the client memory space.

Of note, you should take what information you need from the result before calling the next info_get(), otherwise the 
first results memory could be reused and will no longer be valid.

Gilles