git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d575b2b
)
s3-utils: fix crash in net cache get
author
Christian Ambach
<ambi@samba.org>
Tue, 14 Jun 2011 07:09:07 +0000
(09:09 +0200)
committer
Christian Ambach
<ambi@samba.org>
Tue, 14 Jun 2011 10:01:59 +0000
(12:01 +0200)
free the blob correctly
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Tue Jun 14 12:01:59 CEST 2011 on sn-devel-104
source3/utils/net_cache.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_cache.c
b/source3/utils/net_cache.c
index 88aff4e16ec73b0d9d641efb73304c4ac9b30d68..afcb7a1874f2ca76ee5d82a71e8b09796f143c60 100644
(file)
--- a/
source3/utils/net_cache.c
+++ b/
source3/utils/net_cache.c
@@
-244,7
+244,7
@@
static int net_cache_get(struct net_context *c, int argc, const char **argv)
if (gencache_get_data_blob(keystr, &value, &timeout, NULL)) {
print_cache_entry(keystr, value, timeout, NULL);
-
SAFE_FREE(value.data
);
+
data_blob_free(&value
);
return 0;
}