Commit f882c8f
Don't directly invoke handle destructors in RAMCacheComponent
Summary: It's undefined behavior to call an item's destructor twice (see [this comment](https://www.internalfb.com/diff/D88516565?dst_version_fbid=1376806097214701&transaction_fbid=1562143038240295)), moving the handle out into a temporary is the more idiomatic way to destroy the rvalue ref argument.
Reviewed By: AlnisM
Differential Revision: D90253324
fbshipit-source-id: 6e1d9797ef9532746c35e3c9bdc7feb1cea1c36a1 parent 91699ce commit f882c8f
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments