]> git.sesse.net Git - vlc/blobdiff - modules/access/jack.c
Replace argument = realloc( argument, size ); with realloc_or_free() in modules/...
[vlc] / modules / access / jack.c
index 0ff2a818341380e8c34839f796786927c7da8161..fbbac2d08da962957a0f861b0b412f691021476f 100644 (file)
@@ -543,6 +543,7 @@ static void Port_finder( demux_t *p_demux )
             /* alloc an array to store all the matched ports */
             p_sys->pp_jack_port_table = realloc( p_sys->pp_jack_port_table,
                 (i_out_ports * sizeof( char * ) + i_total_out_ports * sizeof( char * ) ) );
+            assert( p_sys->pp_jack_port_table );
 
             for(int i=0; i<i_out_ports;i++)
             {