Skip to content

Commit 0b4ab4e

Browse files
Do not store dict pointer twice. This should fix Sanitizer report
1 parent 18e28f3 commit 0b4ab4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

blobstamper/stamp_dict.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ class StampDictLCAlphaSmall: public StampDict
5656

5757
template<class T> class StampDictT: public StampDict
5858
{
59-
protected:
60-
std::shared_ptr<T> dict;
6159
public:
62-
StampDictT<T>(): StampDict(dict = std::make_shared<T>()) {};
60+
StampDictT<T>(): StampDict(std::make_shared<T>()) {};
6361
};
6462

6563

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy