From: Mingxin Liu Date: Thu, 18 May 2017 16:23:11 +0000 (+0800) Subject: pybind/rados: avoid call free() on invalid pointer X-Git-Tag: v12.1.0~10^2~58^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15159%2Fhead;p=ceph.git pybind/rados: avoid call free() on invalid pointer Signed-off-by: Mingxin Liu --- diff --git a/src/pybind/rados/rados.pyx b/src/pybind/rados/rados.pyx index 983ea460efbe..717be1b50be6 100644 --- a/src/pybind/rados/rados.pyx +++ b/src/pybind/rados/rados.pyx @@ -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: