free_nfs_cb_data: add assert(data->free_continue_data)
authorArne Redlich <arne.redlich@googlemail.com>
Mon, 17 Feb 2014 22:29:07 +0000 (23:29 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:50:09 +0000 (18:50 -0800)
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>
lib/libnfs.c

index b2a53508b82ec85d1d6619b1bbe56becd15ca68b..2599accf6e14877b38b4a5dc9cf258ef9fbaff43 100644 (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;
        }