summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-01-09 22:02:10 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-01-09 22:02:10 +0000
commite7bb933477f7cd3b6cb160776acd1e706b256af9 (patch)
tree474f5d0a8a57be8eb1b7f1ae26ca31d5c3198040
parent4306fc7aeea2855f3a70c50a1641a7664bd04054 (diff)
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
-rw-r--r--libs/pbd/mountpoint.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/pbd/mountpoint.cc b/libs/pbd/mountpoint.cc
index 3cc94638a3..045e815282 100644
--- a/libs/pbd/mountpoint.cc
+++ b/libs/pbd/mountpoint.cc
@@ -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;
}