From 206a2ff644dc30bedda747d53dee2659f7dc634f Mon Sep 17 00:00:00 2001 From: Arne Redlich Date: Mon, 17 Feb 2014 23:29:07 +0100 Subject: [PATCH] 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 --- lib/libnfs.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1