The 'ssl_sock_free_ocsp_data' now only frees the contents of the
'certificate_ocsp' while leaving the actual structure unfreed.
This will allow to keep certificate_ocsp structures on the stack later.
ha_free(&ocsp->uri);
}
ha_free(&ocsp->last_update_error);
- free(ocsp);
}
/*
* ckch_store was deleted or changed (via cli commands for
* instance).
*/
- if (ocsp->refcount <= 0)
+ if (ocsp->refcount <= 0) {
ssl_sock_free_ocsp_data(ocsp);
+ free(ocsp);
+ }
}
HA_SPIN_UNLOCK(OCSP_LOCK, &ocsp_tree_lock);
}
* ckch_store was deleted or changed (via cli commands for
* instance).
*/
- if (ocsp->refcount_store <= 0)
+ if (ocsp->refcount_store <= 0) {
ssl_sock_free_ocsp_data(ocsp);
-
+ free(ocsp);
+ }
}
HA_SPIN_UNLOCK(OCSP_LOCK, &ocsp_tree_lock);
}