>From my understanding, there is no cleanup to do, the pointers in the 
>"ofproto_port" will be 'memset' to NULL if query fails. 

[Guolin] I am just wondering when error is returned to caller, will the caller 
automatically cleanup
ofport if it is already initialized.


I may not fully understand the question, but I don't think it will. All 
invocation to the "ofproto_port_query_by_name" check the return value and react 
accordingly. 

[Guolin] OK. Anyway, I am fine with the fix.

Thanks
Guolin
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to