#endif
#include <vlc_common.h>
+#include <vlc_memory.h>
#include <ctype.h>
|| i_read == 0 )
break;
*pi_data += i_read;
- *pp_data = realloc( *pp_data, *pi_data + 1025 );
+ *pp_data = realloc_or_free( *pp_data, *pi_data + 1025 );
+ assert( *pp_data );
}
while ( !p_object->b_die