[vlc-commits] commit: ML: fix memory leak. (=?UTF-8?Q?R=C3=A9mi=20Duraffort=20?=)

git at videolan.org git at videolan.org
Sun Jan 9 16:10:19 CET 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jan  9 16:10:06 2011 +0100| [6ecd2c845a4ca9f5d54dbd7b1193708274e13c6c] | committer: Rémi Duraffort 

ML: fix memory leak.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ecd2c845a4ca9f5d54dbd7b1193708274e13c6c
---

 modules/media_library/sql_media_library.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/media_library/sql_media_library.c b/modules/media_library/sql_media_library.c
index 034c425..29ca4ff 100644
--- a/modules/media_library/sql_media_library.c
+++ b/modules/media_library/sql_media_library.c
@@ -626,6 +626,7 @@ int SQLToMediaArray( media_library_t *p_ml, vlc_array_t *p_result_array,
         }
         else /* This is a repeat row and the people need to be put together */
         {
+            free( p_result );
             ml_LockMedia( p_append->value.p_media );
             if( psz_append_pname && i_append_pid && psz_append_prole )
                 ml_CreateAppendPersonAdv( &(p_append->value.p_media->p_people),



More information about the vlc-commits mailing list