Skip to content

Commit cf33e61

Browse files
committed
Fix misleading-indentation error for clang
1 parent 0799f8d commit cf33e61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/pybind11/pybind11.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,9 @@ class cpp_function : public function {
477477
arg.value.dec_ref();
478478
}
479479
if (rec->def) {
480-
if (rec->def->ml_doc)
480+
if (rec->def->ml_doc) {
481481
std::free(const_cast<char *>(rec->def->ml_doc));
482+
}
482483
// Python 3.9.0 decref's these in the wrong order; rec->def
483484
// If loaded on 3.9.0, let these leak (use Python 3.9.1 at runtime to fix)
484485
// See https://github.com/python/cpython/pull/22670

0 commit comments

Comments
 (0)