From: Arne Redlich Date: Mon, 17 Feb 2014 22:29:07 +0000 (+0100) Subject: free_nfs_cb_data: add assert(data->free_continue_data) X-Git-Tag: upstream/1.9.6^2~99 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=206a2ff644dc30bedda747d53dee2659f7dc634f;p=deb_libnfs.git free_nfs_cb_data: add assert(data->free_continue_data) Non-debug builds will trip over the nullptr too - do we rather want to leak the memory there? Signed-off-by: Arne Redlich --- diff --git a/lib/libnfs.c b/lib/libnfs.c index b2a5350..2599acc 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -532,6 +532,7 @@ void free_nfs_cb_data(struct nfs_cb_data *data) } if (data->continue_data != NULL) { + assert(data->free_continue_data); data->free_continue_data(data->continue_data); data->continue_data = NULL; }