comparison stream/realrtsp/real.c @ 29578:b0ee310c2216

Fix several memleaks in real_setup_and_get_header
author reimar
date Wed, 02 Sep 2009 10:20:45 +0000
parents 0ce49cb1b85b
children 26e0c6a16e57
comparison
equal deleted inserted replaced
29577:0ce49cb1b85b 29578:b0ee310c2216
426 char *username, char *password) { 426 char *username, char *password) {
427 427
428 char *description=NULL; 428 char *description=NULL;
429 char *session_id=NULL; 429 char *session_id=NULL;
430 rmff_header_t *h = NULL; 430 rmff_header_t *h = NULL;
431 char *challenge1; 431 char *challenge1 = NULL;
432 char challenge2[41]; 432 char challenge2[41];
433 char checksum[9]; 433 char checksum[9];
434 char *subscribe = NULL; 434 char *subscribe = NULL;
435 char *buf = xbuffer_init(256); 435 char *buf = xbuffer_init(256);
436 char *mrl=rtsp_get_mrl(rtsp_session); 436 char *mrl=rtsp_get_mrl(rtsp_session);
615 rtsp_request_play(rtsp_session,NULL); 615 rtsp_request_play(rtsp_session,NULL);
616 616
617 out: 617 out:
618 subscribe = xbuffer_free(subscribe); 618 subscribe = xbuffer_free(subscribe);
619 buf = xbuffer_free(buf); 619 buf = xbuffer_free(buf);
620 free(description);
621 free(session_id);
622 free(challenge1);
620 return h; 623 return h;
621 } 624 }
622 625
623 struct real_rtsp_session_t * 626 struct real_rtsp_session_t *
624 init_real_rtsp_session (void) 627 init_real_rtsp_session (void)