Added pointer alignment check in csp_buffer_free to avoid dereferencing unaligned pointers