summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-01-01 20:23:49 -0800
committerJeremy Allison <jra@samba.org>2011-01-02 06:11:13 +0100
commit9d754da1120d21e7e1021ca0366cceedca0ee823 (patch)
tree58ef135164dc1d62e4abed8697e84b53f7c588b5
parent9ccef4e62b72a42b7281e6ad6bc1127ed9504bbb (diff)
downloadsamba-9d754da1120d21e7e1021ca0366cceedca0ee823.tar.gz
samba-9d754da1120d21e7e1021ca0366cceedca0ee823.tar.bz2
samba-9d754da1120d21e7e1021ca0366cceedca0ee823.zip
Fix memory leak I introduced when refactoring unexpected packet code.
Found by Volker. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sun Jan 2 06:11:13 CET 2011 on sn-devel-104
-rw-r--r--source3/libsmb/unexpected.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c
index 0f4227de16..3934cba13d 100644
--- a/source3/libsmb/unexpected.c
+++ b/source3/libsmb/unexpected.c
@@ -232,6 +232,7 @@ void clear_unexpected(time_t t)
pu_next = pu->next;
if (pu->timeout < t) {
DLIST_REMOVE(pu_list, pu);
+ SAFE_FREE(pu);
}
}