Changeset 9630c00c6b310e1a824f0bce00de89f0f777484f
- Timestamp:
- 12/03/08 12:07:42 (7 months ago)
- git-parent:
- Files:
-
- modules/access/cdda.c (modified) (2 diffs)
- modules/access/cdda/access.c (modified) (6 diffs)
- modules/access/dc1394.c (modified) (8 diffs)
- modules/access/directory.c (modified) (3 diffs)
- modules/access/dshow/dshow.cpp (modified) (3 diffs)
- modules/access/dvdread.c (modified) (1 diff)
- modules/access/ftp.c (modified) (1 diff)
- modules/access/http.c (modified) (7 diffs)
- modules/access/jack.c (modified) (5 diffs)
- modules/access/rtsp/access.c (modified) (3 diffs)
- modules/access/rtsp/real.c (modified) (5 diffs)
- modules/access/rtsp/real_rmff.c (modified) (2 diffs)
- modules/access/rtsp/real_sdpplin.c (modified) (4 diffs)
- modules/access/rtsp/rtsp.c (modified) (4 diffs)
- modules/access/smb.c (modified) (2 diffs)
- modules/access/v4l.c (modified) (6 diffs)
- modules/access/v4l2/v4l2.c (modified) (4 diffs)
- modules/access/vcd/cdrom.c (modified) (4 diffs)
- modules/audio_filter/normvol.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/access/cdda.c
r0e86a35 r9630c00 155 155 if( !psz_name || !*psz_name ) 156 156 { 157 if( psz_name )free( psz_name );157 free( psz_name ); 158 158 return VLC_EGENERIC; 159 159 } … … 479 479 if( cddb_track_get_title( t ) != NULL ) 480 480 { 481 if( p_input_item->psz_name ) 482 free( p_input_item->psz_name ); 481 free( p_input_item->psz_name ); 483 482 p_input_item->psz_name = strdup( cddb_track_get_title( t ) ); 484 483 input_item_SetTitle( p_input_item, cddb_track_get_title( t ) ); modules/access/cdda/access.c
r63d9df0 r9630c00 307 307 psz_err ? psz_err: "" ); 308 308 309 if( psz_err )free( psz_err );310 if( psz_mes )free( psz_mes );309 free( psz_err ); 310 free( psz_mes ); 311 311 if( !p_readbuf ) 312 312 { … … 401 401 char *psz_title = CDDAFormatTitle( p_access, p_cdda->i_track ); 402 402 input_Control( p_cdda->p_input, INPUT_SET_NAME, psz_title ); 403 free( psz_title);403 free( psz_title ); 404 404 } 405 405 else … … 629 629 { 630 630 msg_Warn( p_access, "could not open %s", psz_source ); 631 if ( psz_source ) 632 free( psz_source ); 631 free( psz_source ); 633 632 return VLC_EGENERIC; 634 633 } … … 810 809 error: 811 810 cdio_destroy( p_cdda->p_cdio ); 812 if( psz_source)free( psz_source );811 free( psz_source ); 813 812 if( p_cdda ) 814 813 { … … 858 857 #endif 859 858 860 if( p_cdda->psz_mcn )free( p_cdda->psz_mcn );861 if( p_cdda->psz_source )free( p_cdda->psz_source );859 free( p_cdda->psz_mcn ); 860 free( p_cdda->psz_source ); 862 861 863 862 #if LIBCDDB_VERSION_NUM >= 1 … … 1007 1006 input_Control( p_cdda->p_input, INPUT_SET_NAME, 1008 1007 psz_title ); 1009 free( psz_title);1008 free( psz_title ); 1010 1009 p_cdda->i_track = i_track; 1011 1010 i_last_lsn = cdio_get_track_lsn( p_cdda->p_cdio, modules/access/dc1394.c
r99fab90 r9630c00 629 629 CloseAudioDev( p_demux ); 630 630 631 if( p_sys->camera_nodes ) 632 free( p_sys->camera_nodes ); 633 if( p_sys->audio_device ) 634 free( p_sys->audio_device ); 631 free( p_sys->camera_nodes ); 632 free( p_sys->audio_device ); 635 633 636 634 free( p_sys ); … … 860 858 "support. It will relased ASAP, until then try an higher size " 861 859 "(320x240 and 640x480 are fully supported)" ); 862 free( psz_dup);860 free( psz_dup ); 863 861 return VLC_EGENERIC; 864 862 #if 0 … … 887 885 "Please specify one of them. You have specified %s.", 888 886 token ); 889 free( psz_dup);887 free( psz_dup ); 890 888 return VLC_EGENERIC; 891 889 } … … 915 913 "Please specify one of them. You have specified %s.", 916 914 token); 917 free( psz_dup);915 free( psz_dup ); 918 916 return VLC_EGENERIC; 919 917 } … … 930 928 "must be an unsigned integer.", 931 929 token ); 932 free( psz_dup);930 free( psz_dup ); 933 931 return VLC_EGENERIC; 934 932 } … … 959 957 "must be an unsigned integer.", 960 958 token ); 961 free( psz_dup);959 free( psz_dup ); 962 960 return VLC_EGENERIC; 963 961 } … … 981 979 "it can be 'raw1394' or 'video1394'.", 982 980 token ); 983 free( psz_dup);981 free( psz_dup ); 984 982 return VLC_EGENERIC; 985 983 } … … 1012 1010 } 1013 1011 } 1014 if( psz_dup )free( psz_dup );1012 free( psz_dup ); 1015 1013 return VLC_SUCCESS; 1016 1014 } modules/access/directory.c
r0e86a35 r9630c00 267 267 playlist_Signal( p_playlist ); 268 268 269 if( psz_name )free( psz_name );269 free( psz_name ); 270 270 vlc_object_release( p_input ); 271 271 vlc_object_release( p_playlist ); … … 456 456 } 457 457 } 458 if( psz_ignore )free( psz_ignore );458 free( psz_ignore ); 459 459 460 460 /* While we still have entries in the directory */ … … 546 546 547 547 for( i = 0; i < i_extensions; i++ ) 548 if( ppsz_extensions[i] )free( ppsz_extensions[i] );549 if( ppsz_extensions )free( ppsz_extensions );548 free( ppsz_extensions[i] ); 549 free( ppsz_extensions ); 550 550 551 551 for( i = 0; i < i_dir_content; i++ ) 552 if( pp_dir_content[i] )free( pp_dir_content[i] );553 if( pp_dir_content )free( pp_dir_content );552 free( pp_dir_content[i] ); 553 free( pp_dir_content ); 554 554 555 555 return i_return; modules/access/dshow/dshow.cpp
r99fab90 r9630c00 334 334 var_Get( p_this, "dshow-vdev", &val ); 335 335 if( val.psz_string ) vdevname = string( val.psz_string ); 336 if( val.psz_string )free( val.psz_string );336 free( val.psz_string ); 337 337 338 338 var_Create( p_this, "dshow-adev", VLC_VAR_STRING | VLC_VAR_DOINHERIT ); 339 339 var_Get( p_this, "dshow-adev", &val ); 340 340 if( val.psz_string ) adevname = string( val.psz_string ); 341 if( val.psz_string )free( val.psz_string );341 free( val.psz_string ); 342 342 343 343 static struct {char *psz_size; int i_width; int i_height;} size_table[] = … … 371 371 } 372 372 } 373 if( val.psz_string )free( val.psz_string );373 free( val.psz_string ); 374 374 375 375 p_sys->b_chroma = VLC_FALSE; … … 382 382 p_sys->b_chroma = VLC_TRUE; 383 383 } 384 if( val.psz_string )free( val.psz_string );384 free( val.psz_string ); 385 385 386 386 var_Create( p_this, "dshow-fps", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT ); modules/access/dvdread.c
r99fab90 r9630c00 230 230 putenv( psz_env ); 231 231 } 232 if( psz_dvdcss_env )free( psz_dvdcss_env );232 free( psz_dvdcss_env ); 233 233 234 234 /* Open dvdread */ modules/access/ftp.c
rcf935d5 r9630c00 624 624 { 625 625 msg_Err( p_access, "cannot get answer" ); 626 if( psz_line )free( psz_line );626 free( psz_line ); 627 627 if( pi_answer ) *pi_answer = 500; 628 628 if( ppsz_answer ) *ppsz_answer = NULL; modules/access/http.c
r111dac8 r9630c00 357 357 if( psz_login ) p_sys->url.psz_username = strdup( psz_login ); 358 358 if( psz_password ) p_sys->url.psz_password = strdup( psz_password ); 359 if( psz_login )free( psz_login );360 if( psz_password )free( psz_password );359 free( psz_login ); 360 free( psz_password ); 361 361 goto connect; 362 362 } 363 363 else 364 364 { 365 if( psz_login )free( psz_login );366 if( psz_password )free( psz_password );365 free( psz_login ); 366 free( psz_password ); 367 367 goto error; 368 368 } … … 615 615 /* read the empty line */ 616 616 char *psz = net_Gets( VLC_OBJECT(p_access), p_sys->fd, p_sys->p_vs ); 617 if( psz )free( psz );617 free( psz ); 618 618 } 619 619 } … … 713 713 strcmp( p_sys->psz_icy_title, &p[1] ) ) 714 714 { 715 if( p_sys->psz_icy_title ) 716 free( p_sys->psz_icy_title ); 715 free( p_sys->psz_icy_title ); 717 716 p_sys->psz_icy_title = strdup( &p[1] ); 718 717 p_access->info.i_update |= INPUT_UPDATE_META; … … 1242 1241 } 1243 1242 1244 if( p_sys->psz_location )free( p_sys->psz_location );1243 free( p_sys->psz_location ); 1245 1244 p_sys->psz_location = psz_new_loc; 1246 1245 } 1247 1246 else if( !strcasecmp( psz, "Content-Type" ) ) 1248 1247 { 1249 if( p_sys->psz_mime )free( p_sys->psz_mime );1248 free( p_sys->psz_mime ); 1250 1249 p_sys->psz_mime = strdup( p ); 1251 1250 msg_Dbg( p_access, "Content-Type: %s", p_sys->psz_mime ); … … 1265 1264 if( !strcasecmp( psz, "Pragma: features" ) ) 1266 1265 p_sys->b_mms = VLC_TRUE; 1267 if( p_sys->psz_pragma )free( p_sys->psz_pragma );1266 free( p_sys->psz_pragma ); 1268 1267 p_sys->psz_pragma = strdup( p ); 1269 1268 msg_Dbg( p_access, "Pragma: %s", p_sys->psz_pragma ); … … 1306 1305 else if( !strcasecmp( psz, "Icy-Name" ) ) 1307 1306 { 1308 if( p_sys->psz_icy_name )free( p_sys->psz_icy_name );1307 free( p_sys->psz_icy_name ); 1309 1308 p_sys->psz_icy_name = strdup( p ); 1310 1309 msg_Dbg( p_access, "Icy-Name: %s", p_sys->psz_icy_name ); … … 1316 1315 else if( !strcasecmp( psz, "Icy-Genre" ) ) 1317 1316 { 1318 if( p_sys->psz_icy_genre )free( p_sys->psz_icy_genre );1317 free( p_sys->psz_icy_genre ); 1319 1318 p_sys->psz_icy_genre = strdup( p ); 1320 1319 msg_Dbg( p_access, "Icy-Genre: %s", p_sys->psz_icy_genre ); modules/access/jack.c
r99fab90 r9630c00 216 216 msg_Err( p_demux, "failed to register a JACK port" ); 217 217 if( p_sys->p_jack_client) jack_client_close( p_sys->p_jack_client ); 218 if( p_sys->pp_jack_port_input )free( p_sys->pp_jack_port_input );218 free( p_sys->pp_jack_port_input ); 219 219 if( p_sys->p_jack_ringbuffer ) jack_ringbuffer_free( p_sys->p_jack_ringbuffer ); 220 if( p_sys->pp_jack_buffer )free( p_sys->pp_jack_buffer );220 free( p_sys->pp_jack_buffer ); 221 221 free( p_sys ); 222 222 return VLC_EGENERIC; … … 241 241 msg_Err( p_demux, "failed to activate JACK client" ); 242 242 if( p_sys->p_jack_client) jack_client_close( p_sys->p_jack_client ); 243 if( p_sys->pp_jack_port_input )free( p_sys->pp_jack_port_input );243 free( p_sys->pp_jack_port_input ); 244 244 if( p_sys->p_jack_ringbuffer ) jack_ringbuffer_free( p_sys->p_jack_ringbuffer ); 245 if( p_sys->pp_jack_buffer )free( p_sys->pp_jack_buffer );245 free( p_sys->pp_jack_buffer ); 246 246 free( p_sys ); 247 247 return VLC_EGENERIC; … … 288 288 } 289 289 } 290 if( pp_jack_port_output )free( pp_jack_port_output );290 free( pp_jack_port_output ); 291 291 } 292 292 … … 328 328 if( p_sys->p_jack_client ) jack_client_close( p_sys->p_jack_client ); 329 329 if( p_sys->p_jack_ringbuffer ) jack_ringbuffer_free( p_sys->p_jack_ringbuffer ); 330 if( p_sys->pp_jack_port_input )free( p_sys->pp_jack_port_input );331 if( p_sys->pp_jack_buffer )free( p_sys->pp_jack_buffer );332 if( p_sys->pp_jack_port_table )free( p_sys->pp_jack_port_table );330 free( p_sys->pp_jack_port_input ); 331 free( p_sys->pp_jack_buffer ); 332 free( p_sys->pp_jack_port_table ); 333 333 free( p_sys ); 334 334 } … … 547 547 } 548 548 549 if( pp_jack_port_output )free( pp_jack_port_output );549 free( pp_jack_port_output ); 550 550 p_sys->i_match_ports = i_total_out_ports; 551 551 } modules/access/rtsp/access.c
r99fab90 r9630c00 132 132 else *p_buffer = 0; 133 133 134 if( psz )free( psz );134 free( psz ); 135 135 return 0; 136 136 } … … 249 249 VLC_VAR_INTEGER | VLC_VAR_DOINHERIT); 250 250 251 if( psz_server )free( psz_server );251 free( psz_server ); 252 252 return VLC_SUCCESS; 253 253 254 254 error: 255 if( psz_server )free( psz_server );255 free( psz_server ); 256 256 Close( p_this ); 257 257 return VLC_EGENERIC; … … 267 267 268 268 if( p_sys->p_rtsp ) rtsp_close( p_sys->p_rtsp ); 269 if( p_sys->p_rtsp )free( p_sys->p_rtsp );269 free( p_sys->p_rtsp ); 270 270 free( p_sys ); 271 271 } modules/access/rtsp/real.c
r99fab90 r9630c00 481 481 if (!desc->stream[i]->mlti_data) { 482 482 len = 0; 483 if( buf )free( buf );483 free( buf ); 484 484 buf = NULL; 485 485 } else … … 532 532 533 533 if( desc ) sdpplin_free( desc ); 534 if( buf ) free(buf);534 free( buf ); 535 535 return header; 536 536 … … 538 538 if( desc ) sdpplin_free( desc ); 539 539 if( header ) rmff_free_header( header ); 540 if( buf )free( buf );540 free( buf ); 541 541 return NULL; 542 542 } … … 643 643 } 644 644 printf( "bou\n"); 645 rtsp_send_ok( rtsp_session);646 if( challenge1 ) free(challenge1);647 if( alert ) free(alert);648 if( buf ) free(buf);645 rtsp_send_ok( rtsp_session ); 646 free( challenge1 ); 647 free( alert ); 648 free( buf ); 649 649 return NULL; 650 650 } … … 725 725 rtsp_request_play(rtsp_session,NULL); 726 726 727 if( challenge1 )free( challenge1 );728 if( session_id )free( session_id );729 if( description ) free(description);730 if( subscribe ) free(subscribe);731 if( buf ) free(buf);727 free( challenge1 ); 728 free( session_id ); 729 free( description ); 730 free( subscribe ); 731 free( buf ); 732 732 return h; 733 733 734 734 error: 735 735 if( h ) rmff_free_header( h ); 736 if( challenge1 )free( challenge1 );737 if( session_id )free( session_id );738 if( description ) free(description);739 if( subscribe ) free(subscribe);740 if( buf ) free(buf);736 free( challenge1 ); 737 free( session_id ); 738 free( description ); 739 free( subscribe ); 740 free( buf ); 741 741 return NULL; 742 742 } modules/access/rtsp/real_rmff.c
ra89f96d r9630c00 384 384 mdpr->type_specific_data = malloc(sizeof(char)*type_specific_len); 385 385 if( !mdpr->type_specific_data ) { 386 if( mdpr->stream_name )free( mdpr->stream_name );386 free( mdpr->stream_name ); 387 387 free( mdpr ); 388 388 return NULL; … … 610 610 if (!h) return; 611 611 612 if (h->fileheader) free(h->fileheader);613 if (h->prop) free(h->prop);614 if (h->data) free(h->data);615 if (h->cont) {616 free( h->cont->title);617 free( h->cont->author);618 free( h->cont->copyright);619 free( h->cont->comment);620 free( h->cont);612 free( h->fileheader ); 613 free( h->prop ); 614 free( h->data ); 615 if( h->cont ) { 616 free( h->cont->title ); 617 free( h->cont->author ); 618 free( h->cont->copyright ); 619 free( h->cont->comment ); 620 free( h->cont ); 621 621 } 622 622 if (h->streams) { modules/access/rtsp/real_sdpplin.c
rbce04f1 r9630c00 210 210 } 211 211 } 212 if( buf ) free(buf);213 if( decoded )free(decoded);212 free( buf ); 213 free( decoded) ; 214 214 return desc; 215 215 216 216 error: 217 if( decoded ) free(decoded);218 if( desc )free( desc );219 if( buf )free( buf );217 free( decoded ); 218 free( desc ); 219 free( buf ); 220 220 return NULL; 221 221 } … … 313 313 } 314 314 315 free( decoded);316 free( buf);315 free( decoded ); 316 free( buf ); 317 317 return desc; 318 318 } … … 326 326 for( i=0; i<description->stream_count; i++ ) { 327 327 if( description->stream[i] ) { 328 if( description->stream[i]->id )free( description->stream[i]->id );329 if( description->stream[i]->bandwidth )free( description->stream[i]->bandwidth );330 if( description->stream[i]->range )free( description->stream[i]->range );331 if( description->stream[i]->length )free( description->stream[i]->length );332 if( description->stream[i]->rtpmap )free( description->stream[i]->rtpmap );333 if( description->stream[i]->mimetype )free( description->stream[i]->mimetype );334 if( description->stream[i]->stream_name )free( description->stream[i]->stream_name );335 if( description->stream[i]->mime_type )free( description->stream[i]->mime_type );336 if( description->stream[i]->mlti_data )free( description->stream[i]->mlti_data );337 if( description->stream[i]->rmff_flags )free( description->stream[i]->rmff_flags );338 if( description->stream[i]->asm_rule_book )free( description->stream[i]->asm_rule_book );328 free( description->stream[i]->id ); 329 free( description->stream[i]->bandwidth ); 330 free( description->stream[i]->range ); 331 free( description->stream[i]->length ); 332 free( description->stream[i]->rtpmap ); 333 free( description->stream[i]->mimetype ); 334 free( description->stream[i]->stream_name ); 335 free( description->stream[i]->mime_type ); 336 free( description->stream[i]->mlti_data ); 337 free( description->stream[i]->rmff_flags ); 338 free( description->stream[i]->asm_rule_book ); 339 339 free( description->stream[i] ); 340 340 } … … 342 342 if( description->stream_count ) free( description->stream ); 343 343 344 if( description->owner )free( description->owner );345 if( description->session_name )free( description->session_name );346 if( description->session_info )free( description->session_info );347 if( description->uri )free( description->uri );348 if( description->email )free( description->email );349 if( description->phone )free( description->phone );350 if( description->connection )free( description->connection );351 if( description->bandwidth )free( description->bandwidth );352 if( description->title )free( description->title );353 if( description->author )free( description->author );354 if( description->copyright )free( description->copyright );355 if( description->keywords )free( description->keywords );356 if( description->asm_rule_book )free( description->asm_rule_book );357 if( description->abstract )free( description->abstract );358 if( description->range )free( description->range );344 free( description->owner ); 345 free( description->session_name ); 346 free( description->session_info ); 347 free( description->uri ); 348 free( description->email ); 349 free( description->phone ); 350 free( description->connection ); 351 free( description->bandwidth ); 352 free( description->title ); 353 free( description->author ); 354 free( description->copyright ); 355 free( description->keywords ); 356 free( description->asm_rule_book ); 357 free( description->abstract ); 358 free( description->range ); 359 359 free(description); 360 360 } modules/access/rtsp/rtsp.c
r99fab90 r9630c00 241 241 char *buf = malloc( strlen(answer) ); 242 242 sscanf( answer, "%*s %s", buf ); 243 if( rtsp->p_private->server )free( rtsp->p_private->server );243 free( rtsp->p_private->server ); 244 244 rtsp->p_private->server = buf; 245 245 } … … 560 560 } 561 561 562 if( rtsp->p_private->path )free( rtsp->p_private->path );563 if( rtsp->p_private->host )free( rtsp->p_private->host );564 if( rtsp->p_private->mrl )free( rtsp->p_private->mrl );565 if( rtsp->p_private->session )free( rtsp->p_private->session );566 if( rtsp->p_private->user_agent )free( rtsp->p_private->user_agent );567 if( rtsp->p_private->server )free( rtsp->p_private->server );562 free( rtsp->p_private->path ); 563 free( rtsp->p_private->host ); 564 free( rtsp->p_private->mrl ); 565 free( rtsp->p_private->session ); 566 free( rtsp->p_private->user_agent ); 567 free( rtsp->p_private->server ); 568 568 rtsp_free_answers( rtsp ); 569 569 rtsp_unschedule_all( rtsp ); … … 605 605 void rtsp_set_session( rtsp_client_t *rtsp, const char *id ) 606 606 { 607 if( rtsp->p_private->session )free( rtsp->p_private->session );607 free( rtsp->p_private->session ); 608 608 rtsp->p_private->session = strdup(id); 609 609 } … … 648 648 if( !strncmp(*ptr, string, strlen(string)) ) break; 649 649 } 650 if( *ptr )free( *ptr );650 free( *ptr ); 651 651 ptr++; 652 652 do modules/access/smb.c
r99fab90 r9630c00 189 189 190 190 if( !psz_user ) psz_user = var_CreateGetString( p_access, "smb-user" ); 191 if( psz_user &&!*psz_user ) { free( psz_user ); psz_user = 0; }191 if( !*psz_user ) { free( psz_user ); psz_user = 0; } 192 192 if( !psz_pwd ) psz_pwd = var_CreateGetString( p_access, "smb-pwd" ); 193 if( psz_pwd &&!*psz_pwd ) { free( psz_pwd ); psz_pwd = 0; }193 if( !*psz_pwd ) { free( psz_pwd ); psz_pwd = 0; } 194 194 if(!psz_domain) psz_domain = var_CreateGetString( p_access, "smb-domain" ); 195 if( psz_domain &&!*psz_domain ) { free( psz_domain ); psz_domain = 0; }195 if( !*psz_domain ) { free( psz_domain ); psz_domain = 0; } 196 196 197 197 #ifdef WIN32 … … 209 209 #endif 210 210 211 if( psz_user )free( psz_user );212 if( psz_pwd )free( psz_pwd );213 if( psz_domain )free( psz_domain );211 free( psz_user ); 212 free( psz_pwd ); 213 free( psz_domain ); 214 214 215 215 #ifdef USE_CTX modules/access/v4l.c
r99fab90 r9630c00 432 432 if( p_sys->fd_audio >= 0 ) 433 433 { 434 if( p_sys->psz_adev )free( p_sys->psz_adev );434 free( p_sys->psz_adev ); 435 435 p_sys->psz_adev = p_sys->psz_device; 436 436 p_sys->psz_device = NULL; … … 439 439 else 440 440 { 441 if( p_sys->psz_vdev )free( p_sys->psz_vdev );441 free( p_sys->psz_vdev ); 442 442 p_sys->psz_vdev = p_sys->psz_device; 443 443 p_sys->psz_device = NULL; … … 460 460 if( !p_sys->psz_vdev || !*p_sys->psz_vdev ) 461 461 { 462 if( p_sys->psz_vdev )free( p_sys->psz_vdev );462 free( p_sys->psz_vdev ); 463 463 p_sys->psz_vdev = var_CreateGetString( p_demux, "v4l-vdev" );; 464 464 } … … 475 475 if( !p_sys->psz_adev || !*p_sys->psz_adev ) 476 476 { 477 if( p_sys->psz_adev )free( p_sys->psz_adev );477 free( p_sys->psz_adev ); 478 478 p_sys->psz_adev = var_CreateGetString( p_demux, "v4l-adev" );; 479 479 } … … 549 549 demux_sys_t *p_sys = p_demux->p_sys; 550 550 551 if( p_sys->psz_device )free( p_sys->psz_device );552 if( p_sys->psz_vdev )free( p_sys->psz_vdev );553 if( p_sys->psz_adev )free( p_sys->psz_adev );551 free( p_sys->psz_device ); 552 free( p_sys->psz_vdev ); 553 free( p_sys->psz_adev ); 554 554 if( p_sys->fd_video >= 0 ) close( p_sys->fd_video ); 555 555 if( p_sys->fd_audio >= 0 ) close( p_sys->fd_audio ); … … 867 867 p_sys->psz_device = strdup( psz_dup ); 868 868 } 869 if( psz_dup )free( psz_dup );869 free( psz_dup ); 870 870 } 871 871 modules/access/v4l2/v4l2.c
r4ab0073 r9630c00 611 611 msg_Dbg( p_this, "'%s' is a video device", p_sys->psz_device ); 612 612 /* Device was a video device */ 613 if( p_sys->psz_vdev )free( p_sys->psz_vdev );613 free( p_sys->psz_vdev ); 614 614 p_sys->psz_vdev = p_sys->psz_device; 615 615 p_sys->psz_device = NULL; … … 654 654 if( !p_sys->psz_vdev || !*p_sys->psz_vdev ) 655 655 { 656 if( p_sys->psz_vdev )free( p_sys->psz_vdev );656 free( p_sys->psz_vdev ); 657 657 p_sys->psz_vdev = var_CreateGetString( p_this, "v4l2-dev" ); 658 658 } … … 863 863 } 864 864 865 if( p_sys->psz_requested_chroma )free( p_sys->psz_requested_chroma );865 free( p_sys->psz_requested_chroma ); 866 866 p_sys->psz_requested_chroma = strndup( psz_parser, i_len ); 867 867 … … 1054 1054 p_sys->psz_device = strdup( psz_dup ); 1055 1055 } 1056 if( psz_dup )free( psz_dup );1056 free( psz_dup ); 1057 1057 } 1058 1058 modules/access/vcd/cdrom.c
r99fab90 r9630c00 163 163 void ioctl_Close( vlc_object_t * p_this, vcddev_t *p_vcddev ) 164 164 { 165 if( p_vcddev->psz_dev )free( p_vcddev->psz_dev );165 free( p_vcddev->psz_dev ); 166 166 167 167 if( p_vcddev->i_vcdimage_handle != -1 ) … … 359 359 if( *pp_sectors == NULL || p_fulltoc == NULL ) 360 360 { 361 if( *pp_sectors )free( *pp_sectors );362 if( p_fulltoc )free( p_fulltoc );361 free( *pp_sectors ); 362 free( p_fulltoc ); 363 363 msg_Err( p_this, "out of memory" ); 364 364 CloseHandle( hEvent ); … … 973 973 error: 974 974 if( cuefile ) fclose( cuefile ); 975 if( psz_cuefile )free( psz_cuefile );976 if( psz_vcdfile )free( psz_vcdfile );975 free( psz_cuefile ); 976 free( psz_vcdfile ); 977 977 978 978 return i_ret; … … 989 989 return; 990 990 991 if( p_vcddev->p_sectors ) 992 free( p_vcddev->p_sectors ); 991 free( p_vcddev->p_sectors ); 993 992 } 994 993 modules/audio_filter/normvol.c
r99fab90 r9630c00 244 244 if( p_sys ) 245 245 { 246 if( p_sys->p_last)free( p_sys->p_last );246 free( p_sys->p_last ); 247 247 free( p_sys ); 248 248 }
