fix nasty memory-related crashes caused by not noticing a bug in getmntinfo() on OS X, which disallows free()-ing memory allocated by that function
git-svn-id: svn://localhost/ardour2/branches/3.0@11211 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4306fc7aee
commit
e7bb933477
@ -147,7 +147,11 @@ mountpoint (string path)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(mntbufp);
|
/* From the manpage, under "BUGS" : "The memory allocated by getmntinfo() cannot be free(3)'d by the
|
||||||
|
application."
|
||||||
|
|
||||||
|
free(mntbufp);
|
||||||
|
*/
|
||||||
|
|
||||||
return best;
|
return best;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user