-
Notifications
You must be signed in to change notification settings - Fork 274
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
Add swss::Table to c api #964
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
It is only used for key/field names, so this keeps it consistent with other class apis
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks straight forward change to me.
@@ -31,3 +31,7 @@ void SWSSFieldValueArray_free(SWSSFieldValueArray arr) { | |||
void SWSSKeyOpFieldValuesArray_free(SWSSKeyOpFieldValuesArray kfvs) { | |||
SWSSTry(delete[] kfvs.data); | |||
} | |||
|
|||
void SWSSStringArray_free(SWSSStringArray arr) { | |||
SWSSTry(delete[] arr.data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a "const char **data;", do you need delete all string pointer in this array first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The c api free functions don't do that because the data is sometimes user-owned. The behavior is expressed in the header file comments.
No description provided.