Skip to content

Instantly share code, notes, and snippets.

@kubo
Created May 8, 2011 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kubo/961346 to your computer and use it in GitHub Desktop.
Save kubo/961346 to your computer and use it in GitHub Desktop.
===================================================================
--- ext/oci8/oci8lib.c (revision 411)
+++ ext/oci8/oci8lib.c (working copy)
@@ -32,7 +32,9 @@
base->klass->free(base);
if (base->type >= OCI_DTYPE_FIRST)
OCIDescriptorFree(base->hp.ptr, base->type);
- else if (base->type >= OCI_HTYPE_FIRST)
+ else if (base->type >= OCI_HTYPE_FIRST &&
+ base->type != OCI_HTYPE_DEFINE &&
+ base->type != OCI_HTYPE_BIND)
OCIHandleFree(base->hp.ptr, base->type);
base->type = 0;
base->hp.ptr = NULL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment