Skip to content

Commit b559053

Browse files
committed
Apply BRL-CAD r56968 from n_reed - address leak identified by valgrind
1 parent 0907ecc commit b559053

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/clutils/dirobj.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ std::string DirObj::Normalize( const std::string & path ) {
230230
buf.clear();
231231
} else {
232232
buf.assign( b );
233+
234+
#if !defined(__WIN32__)
235+
free(b);
236+
#endif
233237
}
234238

235239
if( buf.empty() ) {

0 commit comments

Comments
 (0)