Skip to content

Commit 319fe4c

Browse files
committed
bugfix: Add shmtx unlock
1 parent 0009b3b commit 319fe4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngx_http_vhost_traffic_status_shm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ ngx_http_vhost_traffic_status_shm_add_node(ngx_http_request_t *r,
130130
if (node == NULL) {
131131
shm_info = ngx_pcalloc(r->pool, sizeof(ngx_http_vhost_traffic_status_shm_info_t));
132132
if (shm_info == NULL) {
133+
ngx_shmtx_unlock(&shpool->mutex);
133134
return NGX_ERROR;
134135
}
135136

0 commit comments

Comments
 (0)