Skip to content

Commit

Permalink
Change free function.
Browse files Browse the repository at this point in the history
Use Privoxy freez() function to free memory.
  • Loading branch information
so898 authored May 17, 2017
1 parent d5ceded commit 76668eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/ShadowPath/ShadowPath/Privoxy/jcc.m
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,9 @@ static void add_log_csp(struct client_state *csp) {
log_clients->csp->flags &= ~CSP_FLAG_LOG_REQUEST;
struct log_client_states *tmp = log_clients;
log_clients = log_clients->next;
free(tmp);
tmp->csp = NULL;
tmp->next = NULL;
freez(tmp);
log_clients_count --;
}
unlock_log_request();
Expand Down

0 comments on commit 76668eb

Please sign in to comment.