From: Wei Liu Subject: [PATCH v2 0/7] libxl: make _dispose idempotent and NULL-tolerant Date: Wed, 25 Feb 2015 14:55:59 +0000 Message-ID: <1424876166-9618-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Wei Liu , ian.jackson@eu.citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org The first two patches are bug fixes. Other patches are used to make _dispose idempotent and NULL-tolerant. Wei. Wei Liu (7): libxl: fix off-by-one error in JSON parser gentest: make testidl valgrind clean libxl: make some _dipose functions idempotent and tolerate NULL gentypes: zero out structure in _dispose function gentypes: make dispose function tolerate NULL testidl: call _init and _dispose several times libxl: update libxl.h to say _dispose is idempotent tools/libxl/gentest.py | 22 ++++++++++++++++------ tools/libxl/gentypes.py | 4 ++-- tools/libxl/libxl.c | 11 +++++++++-- tools/libxl/libxl.h | 3 +-- tools/libxl/libxl_cpuid.c | 5 ++++- tools/libxl/libxl_json.c | 2 +- tools/libxl/libxl_utils.c | 5 +++++ 7 files changed, 38 insertions(+), 14 deletions(-) -- 1.9.1