We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3406b0 commit 324ed21Copy full SHA for 324ed21
1 file changed
src/info.cpp
@@ -142,7 +142,8 @@ void pj_clear_proj_info()
142
*****************************************************************************/
143
{
144
pj_acquire_lock();
145
- free(const_cast<char *>(info.searchpath));
+ if (info.searchpath != empty)
146
+ free(const_cast<char *>(info.searchpath));
147
info.searchpath = nullptr;
148
pj_release_lock();
149
}
0 commit comments