Commits

Mikhail Korobov  committed bf0a409

Memory leak on read error is fixed

  • Participants
  • Parent commits 311a2d4

Comments (0)

Files changed (1)

             ret = PyString_FromStringAndSize( buffer, dlen )
             PyMem_Free(buffer)
             return ret
+        PyMem_Free(buffer)
         raise CDBError("Unknown Error")
-        PM.PyMem_Free(buffer)
 
     def __dealloc__( self ) :
         self.close()