Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http: nonce - fix memory leak (coverity)
  • Loading branch information
perexg committed May 23, 2016
1 parent 97483b2 commit 18db7cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http.c
Expand Up @@ -263,6 +263,7 @@ http_get_nonce(void)
pthread_mutex_lock(&global_lock);
if (RB_INSERT_SORTED(&http_nonces, n, link, http_nonce_cmp)) {
pthread_mutex_unlock(&global_lock);
free(m);
continue; /* get unique md5 */
}
mtimer_arm_rel(&n->expire, http_nonce_timeout, n, sec2mono(10));
Expand Down

0 comments on commit 18db7cb

Please sign in to comment.