diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-12-17 13:26:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-12-22 15:08:30 +0100 |
commit | d9be7e9368fc373a2b7978228ce723869f0ad0ac (patch) | |
tree | 54536412c3852375f75bed0f260a9326644dbe93 | |
parent | 94e83e385e5ba66f1415164214f7afd5e4ad7536 (diff) | |
download | samba-d9be7e9368fc373a2b7978228ce723869f0ad0ac.tar.gz samba-d9be7e9368fc373a2b7978228ce723869f0ad0ac.tar.bz2 samba-d9be7e9368fc373a2b7978228ce723869f0ad0ac.zip |
s3:lib/gencache: fix memory leak in error path
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 22 15:08:30 CET 2010 on sn-devel-104
-rw-r--r-- | source3/lib/gencache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index db0b179e65..7bab925648 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -431,6 +431,9 @@ fail: if (was_expired != NULL) { *was_expired = expired; } + if (state.result && state.blob) { + data_blob_free(state.blob); + } return false; } |