vrogier / ocilib

OCILIB (C and C++ Drivers for Oracle) - Open source C and C++ library for accessing Oracle databases
http://www.ocilib.net
Apache License 2.0
325 stars 119 forks source link

crash with using change notification #346

Closed Miki-123 closed 1 year ago

Miki-123 commented 1 year ago

Hi Vincent,

I would like to report you an error in subscription.c. In function OcilibSubscriptionRegister you call free(sub) in a cleanup section on line 338. But in function OcilibSubscriptionUnregister(sub) which is called before, you call free(sub) too (on line 370). It caused double free crash.

Best regards and thanks for your work on this project Miki

vrogier commented 1 year ago

Hi,

This has already been fixed in v4.7.6 and is a duplicate of issue #323

Closing this issue.

Regards,

Vincent