# include <fcntl.h> /* O_CREAT, O_TRUNC, O_WRONLY, O_SYNC */
#endif
-#ifdef HAVE_ERRNO_H
-# include <errno.h> /* errno */
-#endif
+#include <errno.h> /* errno */
#ifdef HAVE_UNISTD_H
# include <unistd.h> /* close(), write() */
/* Remove this subscription */
REMOVE_ELEM( p_bank->pp_sub, p_bank->i_sub, i_index );
+ free( p_sub );
+
vlc_mutex_unlock( &p_bank->lock );
}
if( psz_str == NULL )
{
-#ifdef HAVE_ERRNO_H
fprintf( stderr, "main warning: can't store message (%s): ",
strerror(errno) );
-#else
- fprintf( stderr, "main warning: can't store message: " );
-#endif
vlc_va_copy( args, _args );
vfprintf( stderr, psz_format, args );
va_end( args );