[vlc-commits] medialibrary: fs: device: Fix memory leak
Hugo Beauzée-Luyssen
git at videolan.org
Tue Oct 29 11:56:15 CET 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Oct 28 15:50:30 2019 +0100| [38e5fb836b87932c33a90453859533c805aeff98] | committer: Hugo Beauzée-Luyssen
medialibrary: fs: device: Fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38e5fb836b87932c33a90453859533c805aeff98
---
modules/misc/medialibrary/fs/device.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/misc/medialibrary/fs/device.cpp b/modules/misc/medialibrary/fs/device.cpp
index 689d5eb70f..88b655dc5f 100644
--- a/modules/misc/medialibrary/fs/device.cpp
+++ b/modules/misc/medialibrary/fs/device.cpp
@@ -121,6 +121,7 @@ SDDevice::matchesMountpoint( const std::string& mrl ) const
continue;
std::string tmpUrl(tmpUrl_psz);
free(tmpUrl_psz);
+ vlc_UrlClean( &probedUrl );
return std::make_tuple( true, tmpUrl );
}
}
@@ -131,6 +132,7 @@ SDDevice::matchesMountpoint( const std::string& mrl ) const
}
}
vlc_UrlClean( &url );
+ vlc_UrlClean( &probedUrl );
return std::make_tuple( true, m );
}
vlc_UrlClean( &probedUrl );
More information about the vlc-commits
mailing list