Home | History | Annotate | Download | only in microspdy
      1 /*
      2     This file is part of libmicrospdy
      3     Copyright Copyright (C) 2012 Andrey Uzunov
      4 
      5     This program is free software: you can redistribute it and/or modify
      6     it under the terms of the GNU General Public License as published by
      7     the Free Software Foundation, either version 3 of the License, or
      8     (at your option) any later version.
      9 
     10     This program is distributed in the hope that it will be useful,
     11     but WITHOUT ANY WARRANTY; without even the implied warranty of
     12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13     GNU General Public License for more details.
     14 
     15     You should have received a copy of the GNU General Public License
     16     along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18 
     19 /**
     20  * @file alstructures.c
     21  * @brief  structures only for the application layer
     22  * @author Andrey Uzunov
     23  */
     24 
     25 #include "platform.h"
     26 #include "alstructures.h"
     27 #include "internal.h"
     28 
     29 void
     30 SPDY_destroy_request (struct SPDY_Request *request)
     31 {
     32 	if(NULL == request)
     33 	{
     34 		SPDYF_DEBUG("request is NULL");
     35 		return;
     36 	}
     37 	//strings into request struct are just references to strings in
     38 	//headers, so no need to free them twice
     39 	SPDY_name_value_destroy(request->headers);
     40 	free(request);
     41 }
     42