OpenNetworkingFoundation/libfluid_msg — pull request #9 by bertvl-netro (2014-12-02 15:30:36+00:00)
Title: Bugfix: segfault with duplicate match fields.

Duplicate match fields caused a segfault in the destructor due to the
field num being present multiple times in the cur_tlvs_ vector, and the
destructor iterating over those entries and consequently deleting entries
in the oxm_tlvs_ multiple times. For reference, the destructor looks
like this:
Match::~Match() {
for (std::vector::iterator it = this->curr_tlvs_.begin();
it != this->curr_tlvs_.end(); ++it) {
delete this->oxm_tlvs_[*it];
}
}