← Back to team overview

linux-traipu team mailing list archive

[Bug 1015576] [NEW] libdrizzle doesn't free result if EOF packet is received

 

Public bug reported:

I use libdrizzle-1.0 from 2554 revision. When I read result packet from
server with drizzle_result_read(...) function and the packet is EOF, the
result options are reset to DRIZZLE_RESULT_EOF_PACKET (see
drizzle_state_result_read(...)). Then if I try to release result data
with drizzle_result_free_all(...) it doesn't work because
drizzle_result_free(...) code checks result options for
DRIZZLE_RESULT_ALLOCATED bit before deletion, if this bit is not set
result will not be deleted. But this bit was reset in
drizzle_state_result_read(...). So if the result packet is read with
drizzle_result_read(...) and the packet is EOF, it's impossible to
release result object with drizzle_result_free_all(...).

** Affects: drizzle
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/1015576

Title:
  libdrizzle doesn't free result if EOF packet is received

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  New

Bug description:
  I use libdrizzle-1.0 from 2554 revision. When I read result packet
  from server with drizzle_result_read(...) function and the packet is
  EOF, the result options are reset to DRIZZLE_RESULT_EOF_PACKET (see
  drizzle_state_result_read(...)). Then if I try to release result data
  with drizzle_result_free_all(...) it doesn't work because
  drizzle_result_free(...) code checks result options for
  DRIZZLE_RESULT_ALLOCATED bit before deletion, if this bit is not set
  result will not be deleted. But this bit was reset in
  drizzle_state_result_read(...). So if the result packet is read with
  drizzle_result_read(...) and the packet is EOF, it's impossible to
  release result object with drizzle_result_free_all(...).

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/1015576/+subscriptions


Follow ups

References