Skip to content

Commit

Permalink
Merge pull request #337 from nodogsplash/Preauth
Browse files Browse the repository at this point in the history
Remove redundant free(query);
  • Loading branch information
bluewavenet committed Jan 2, 2019
2 parents 3a18da4 + f851a4e commit 27c4afe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef _CONF_H_
#define _CONF_H_

#define VERSION "3.3.0-1-beta"
#define VERSION "3.3.0-2-beta"

/*@{*/
/** Defines */
Expand Down
3 changes: 0 additions & 3 deletions src/http_microhttpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,6 @@ static int preauthenticated(struct MHD_Connection *connection,
get_query(connection, &query, QUERYSEPARATOR);

ret = show_preauthpage(connection, query);
free(query);
return ret;
}

Expand Down Expand Up @@ -730,7 +729,6 @@ static int redirect_to_splashpage(struct MHD_Connection *connection, t_client *c
if (!query) {
debug(LOG_DEBUG, "Unable to get query string - error 503");
/* no mem */
free(query);
return send_error(connection, 503);
}

Expand All @@ -746,7 +744,6 @@ static int redirect_to_splashpage(struct MHD_Connection *connection, t_client *c
ret = encode_and_redirect_to_splashpage(connection, originurl, querystr);
free(originurl);
free(querystr);
free(query);
return ret;
}

Expand Down

0 comments on commit 27c4afe

Please sign in to comment.