commit e175ca4fc5ebccac7761a738a84dbf7e58befa5c
Author: Christophe Fergeau <[email protected]>
Date:   Wed Sep 30 21:33:47 2009 +0200

    fix memory leak when an error occurs when reading a mhod

 src/itdb_itunesdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index af9e221..a5edfcc 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -1411,7 +1411,7 @@ static MHODData get_mhod (FImport *fimp, glong mhod_seek, 
guint32 *ml)
          result.data.string = g_new0 (gchar, xl+1);
          if (!seek_get_n_bytes (cts, result.data.string, seek+16, xl))
          {   /* error */
-             g_free (entry_utf16);
+             g_free (result.data.string);
              return result;  /* *ml==-1, result.valid==FALSE */
          }
       }

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to