Skip to content

Commit 14b38ad

Browse files
committed
Fix memory leak in Collections
This closes owasp-modsecurity#1729.
1 parent 8d0f51b commit 14b38ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/collection/collections.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ Collections::Collections(Collection *global,
4848
}
4949

5050

51-
Collections::~Collections() { }
51+
Collections::~Collections() {
52+
delete m_tx_collection;
53+
}
5254

5355

5456
} // namespace collection

0 commit comments

Comments
 (0)