Skip to content
Snippets Groups Projects
Commit d9e53ee7 authored by Aomx's avatar Aomx
Browse files

small style adjustment

parent 08d68fcf
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,7 @@ void state_free(struct state *state) ...@@ -155,7 +155,7 @@ void state_free(struct state *state)
run_unlock(state); run_unlock(state);
if (pthread_mutex_destroy(&state->mutex) != 0) if (pthread_mutex_destroy(&state->mutex) != 0)
die_perror("pthread_mutex_destroy"); die_perror("pthread_mutex_destroy");
memset(state, 0, sizeof(*state)); /* paranoia to help catch bugs */ memset(state, 0, sizeof(*state)); /* paranoia to help catch bugs */
free(state); free(state);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment