]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: avoid call free() on invalid pointer 15159/head
authorMingxin Liu <mingxin@xsky.com>
Thu, 18 May 2017 16:23:11 +0000 (00:23 +0800)
committerMingxin Liu <mingxin@xsky.com>
Thu, 18 May 2017 16:23:56 +0000 (00:23 +0800)
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
src/pybind/rados/rados.pyx

index 983ea460efbe9e2b8753f6be412978a203899246..717be1b50be695d62cb10fce15904c77a630844d 100644 (file)
@@ -798,7 +798,7 @@ Rados object in state %s." % self.state)
         mon_id = cstr(mon_id, 'mon_id')
         cdef:
             char *_mon_id = mon_id
-            size_t outstrlen
+            size_t outstrlen = 0
             char *outstr
 
         with nogil: