fix nasty memory-related crashes caused by not noticing a bug in getmntinfo() on...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 9 Jan 2012 22:02:10 +0000 (22:02 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 9 Jan 2012 22:02:10 +0000 (22:02 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11211 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/pbd/mountpoint.cc

index 3cc94638a335023019d829dad5b1523d61573acb..045e8152827a47a9cd9b50947615f1046f294906 100644 (file)
@@ -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;
 }