git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e83e3
)
s3:lib/gencache: fix memory leak in error path
author
Stefan Metzmacher
<metze@samba.org>
Fri, 17 Dec 2010 12:26:16 +0000
(13:26 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 22 Dec 2010 14:08:30 +0000
(15:08 +0100)
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 22 15:08:30 CET 2010 on sn-devel-104
source3/lib/gencache.c
patch
|
blob
|
history
diff --git
a/source3/lib/gencache.c
b/source3/lib/gencache.c
index db0b179e653d3b535175c5dfb9a793faa922f477..7bab9256483e208da0732d45339b7870c35f27b5 100644
(file)
--- 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;
}