classifier: Fix theoretical leak in classifier_destroy().
authorBen Pfaff <blp@nicira.com>
Fri, 21 Dec 2012 22:59:11 +0000 (14:59 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 10 Jan 2013 16:32:05 +0000 (08:32 -0800)
commit0c09d44e6937e0eac39fd8b014a9bf0bd2412be8
treede39e804a5b3f1a194c89d10efb39d68345b4387
parentee382d89186673e2308b6fca5e4904279600c25b
classifier: Fix theoretical leak in classifier_destroy().

The open-coded version of destroy_table() in classifier_destroy() didn't
free the table's minimatch.  Use destroy_table() to do it properly.

This is only a theoretical leak because all the existing callers actually
remove all the rules from their classifiers before they destroy them
(outside of the tests/ directory, which I didn't examine) and so they don't
ever have anything left to remove in classifier_destroy().

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/classifier.c