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 <arne.redlich@googlemail.com>
libnfs-4.0.0-vitalif
Arne Redlich 2014-02-17 23:29:07 +01:00 committed by Ronnie Sahlberg
parent 6b1f14ca01
commit 206a2ff644
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}