Skip to content

Commit

Permalink
fix minor memory leak when reading config.
Browse files Browse the repository at this point in the history
Fabian Mauchle committed Jul 18, 2018
1 parent 3364c55 commit b6a7db3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radsecproxy.c
Original file line number Diff line number Diff line change
@@ -3228,6 +3228,7 @@ void getmainconfig(const char *configfile) {
|| options.log_mac == RSP_MAC_FULLY_KEY_HASHED)) {
debugx(1, DBG_ERR, "config error: LogMAC %s requires LogKey to be set.", log_mac_str);
}
free(log_mac_str);
} else {
options.log_mac = RSP_MAC_ORIGINAL;
}

0 comments on commit b6a7db3

Please sign in to comment.