classify/adaptmatch: Fix memory leak

Coverity report:

CID 1164738 (#1 of 1): Resource leak (RESOURCE_LEAK)
7. leaked_storage: Variable sample going out of scope leaks the storage it points to.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2016-10-24 13:42:18 +02:00
parent bf334e0477
commit 963b935e80

View File

@ -1001,6 +1001,8 @@ void Classify::DisplayAdaptedChar(TBLOB* blob, INT_CLASS_STRUCT* int_class) {
6 | 0x19, matcher_debug_separate_windows);
UpdateMatchDisplay();
}
delete sample;
#endif
}