Changeset 444653a97c20a33353e2d09a911b85f0af97e78d

Show
Ignore:
Timestamp:
30/01/06 12:13:11 (3 years ago)
Author:
Sigmund Augdal Helberg <sigmunau@videolan.org>
git-committer:
Sigmund Augdal Helberg <sigmunau@videolan.org> 1138619591 +0000
git-parent:

[91bcf3d39c273d339fb0a3c16c2e4b3b61f277f5]

git-author:
Sigmund Augdal Helberg <sigmunau@videolan.org> 1138619591 +0000
Message:

messages.c: fixed one more leak related to vlm prefix on messages.
This one happened each time the message queue was overflowed.
Also (hopefully) fixed a leak that would happen each time no message
queue were found. I don't know if this condition can ever appear though

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/messages.c

    r8eaff12 r444653a  
    384384    { 
    385385        vlc_mutex_unlock( &p_bank->lock ); 
     386        if( psz_str ) free( psz_str ); 
     387        if( psz_header ) free( psz_header ); 
    386388        return; 
    387389    } 
     
    457459        if( p_item->psz_msg ) 
    458460            free( p_item->psz_msg ); 
     461        if( p_item->psz_header ) 
     462            free( p_item->psz_header ); 
    459463    } 
    460464