Destruction of as_record

As per API docs, ‘as_record_destroy’ should be called upon ‘as_record’ when it is no longer required. In my C++ program, I was thinking of adding a check(as_record==NULL), to check if it needs to be destroyed or not. Is this required or not?

No. as_record_destroy() already checks for null.

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.