When you are no longer using the value, you should free it from memory by calling the slapi_value_free() function/