someone forgot to add parenthesis which could cause memory leaks on redirects. Not anymore! Parenthesis added.

This commit is contained in:
valeski%netscape.com 1998-08-11 02:59:31 +00:00
Родитель afbbdb8eda
Коммит a6a2ce3e93
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -2727,18 +2727,19 @@ net_setup_http_stream(ActiveEntry * ce)
}
/* clear these */
if(!ce->URL_s->preset_content_type)
if(!ce->URL_s->preset_content_type) {
PR_FREEIF(ce->URL_s->content_type);
ce->URL_s->content_type = NULL;
PR_FREEIF(ce->URL_s->content_encoding);
ce->URL_s->content_encoding = NULL;
}
PR_FREEIF(ce->URL_s->content_encoding);
ce->URL_s->content_encoding = NULL;
ce->URL_s->content_length = 0; /* reset */
ce->URL_s->real_content_length = 0; /* reset */
ce->URL_s->last_modified = 0; /* reset */
cd->posting = FALSE;
ce->URL_s->address_modified = TRUE;
ce->URL_s->address_modified = TRUE;
if(do_redirect)
return(MK_DO_REDIRECT); /*fall out of HTTP and load the redirecting url */