Welcome! Log In Create A New Profile

Advanced

[PATCH] BUG/MEDIUM: stick-tables: Decrement ref_cnt in table_* converters

Posted by Daniel Corbett 
Hello,

When using table_* converters ref_cnt was incremented
and never decremented causing entries to not expire.

The root cause appears to be that stktable_lookup_key()
was called within all sample_conv_table_* functions which was
incrementing ref_cnt and not decrementing after completion.

Added stktable_release() to the end of each sample_conv_table_*
function.

This should be backported to 1.8.


Thanks,
-- Daniel
Sorry, only registered users may post in this forum.

Click here to login