Skip to content

Commit ce71368

Browse files
committed
fixed some misprints
1 parent 975bdae commit ce71368

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎include/shared_allocator/cached_allocator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace salloc {
189189
\param _memory Pointer to allocated memory. */
190190
inline void deallocate_force(pointer _memory, size_type = 0) const
191191
{
192-
m_allocator.deallocate(pMem);
192+
m_allocator.deallocate(_memory);
193193
}
194194

195195
/** \brief Allocate elements.

‎include/shared_allocator/size_cached_allocator.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ namespace salloc {
226226
/** \brief Truly deallocates memory.
227227
228228
\param _memory Pointer to allocated memory. */
229-
inline void deallocate_force(pointer _memory) const
229+
inline void deallocate_force(pointer _memory, size_type = 0) const
230230
{
231-
m_allocator.deallocate(pMem);
231+
m_allocator.deallocate(_memory);
232232
}
233233

234234
/** \brief Allocate array of elements.

0 commit comments

Comments
 (0)