Skip to content

Commit

Permalink
lib-http: Forgot to assign pointer parameter to NULL in request/respo…
Browse files Browse the repository at this point in the history
…nse parser deinit functions.
  • Loading branch information
stephanbosch authored and sirainen committed Feb 10, 2016
1 parent af3f70f commit da30047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-http/http-request-parser.c
Expand Up @@ -75,6 +75,8 @@ void http_request_parser_deinit(struct http_request_parser **_parser)
struct http_request_parser *parser = *_parser;

http_message_parser_deinit(&parser->parser);

*_parser = NULL;
i_free(parser);
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib-http/http-response-parser.c
Expand Up @@ -47,6 +47,8 @@ void http_response_parser_deinit(struct http_response_parser **_parser)
struct http_response_parser *parser = *_parser;

http_message_parser_deinit(&parser->parser);

*_parser = NULL;
i_free(parser);
}

Expand Down

0 comments on commit da30047

Please sign in to comment.