Skip to content

Commit

Permalink
Use delete[] to match new wchar_t[].
Browse files Browse the repository at this point in the history
  • Loading branch information
drmoose committed Aug 28, 2020
1 parent c55ab94 commit fe38a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/embed.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct wide_char_arg_deleter {
// API docs: https://docs.python.org/3/c-api/sys.html#c.Py_DecodeLocale
PyMem_RawFree(ptr);
#else
delete ptr;
delete[] ptr;
#endif
}
};
Expand Down

0 comments on commit fe38a24

Please sign in to comment.