Skip to content

Commit

Permalink
Merge pull request vozlt#249 from u5surf/shm_unlock
Browse files Browse the repository at this point in the history
bugfix: Add shmtx unlock
  • Loading branch information
u5surf authored Sep 26, 2022
2 parents 0009b3b + 319fe4c commit f731137
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ngx_http_vhost_traffic_status_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ ngx_http_vhost_traffic_status_shm_add_node(ngx_http_request_t *r,
if (node == NULL) {
shm_info = ngx_pcalloc(r->pool, sizeof(ngx_http_vhost_traffic_status_shm_info_t));
if (shm_info == NULL) {
ngx_shmtx_unlock(&shpool->mutex);
return NGX_ERROR;
}

Expand Down

0 comments on commit f731137

Please sign in to comment.