Differential D24263 Diff 70197 head/security/snort3/files/patch-src_host__tracker_host__cache__allocator.cc
Changeset View
Changeset View
Standalone View
Standalone View
head/security/snort3/files/patch-src_host__tracker_host__cache__allocator.cc
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/host_tracker/host_cache_allocator.cc.orig 2020-04-04 01:57:20 UTC | |||||
+++ src/host_tracker/host_cache_allocator.cc | |||||
@@ -24,23 +24,6 @@ | |||||
#include "host_cache.h" | |||||
template <class T> | |||||
-T* HostCacheAlloc<T>::allocate(std::size_t n) | |||||
-{ | |||||
- size_t sz=n*sizeof(T); | |||||
- T* out=std::allocator<T>::allocate(n); | |||||
- lru->update(sz); | |||||
- return out; | |||||
-} | |||||
- | |||||
-template <class T> | |||||
-void HostCacheAlloc<T>::deallocate(T* p, std::size_t n) noexcept | |||||
-{ | |||||
- size_t sz = n*sizeof(T); | |||||
- std::allocator<T>::deallocate(p, n); | |||||
- lru->update( -(int) sz); | |||||
-} | |||||
- | |||||
-template <class T> | |||||
HostCacheAllocIp<T>::HostCacheAllocIp() | |||||
{ | |||||
lru = &host_cache; |