repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b1f14c
)
free_nfs_cb_data: add assert(data->free_continue_data)
author
Arne Redlich
<arne.redlich@googlemail.com>
Mon, 17 Feb 2014 22:29:07 +0000
(23:29 +0100)
committer
Ronnie 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
patch
|
blob
|
blame
|
history
diff --git
a/lib/libnfs.c
b/lib/libnfs.c
index b2a53508b82ec85d1d6619b1bbe56becd15ca68b..2599accf6e14877b38b4a5dc9cf258ef9fbaff43 100644
(file)
--- 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;
}