diff options
author | Gerald Carter <jerry@samba.org> | 2002-07-20 04:27:30 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-07-20 04:27:30 +0000 |
commit | b516eb62db51fe8a793b73014777ced3038f9aa7 (patch) | |
tree | 0e808392b3dd42dcbbc0a5e187f5783cef6301dd /source3/registry/reg_cachehook.c | |
parent | 39bbeff5b361ffa6a5ff9273cf7fce5f46543703 (diff) | |
download | samba-b516eb62db51fe8a793b73014777ced3038f9aa7.tar.gz samba-b516eb62db51fe8a793b73014777ced3038f9aa7.tar.xz samba-b516eb62db51fe8a793b73014777ced3038f9aa7.zip |
enumeration of printers keys ( no data yet ) via the registry
functions now works :-)
(This used to be commit c5768538f6cf6ee824bc6e105a3391bbc2ea8e46)
Diffstat (limited to 'source3/registry/reg_cachehook.c')
-rw-r--r-- | source3/registry/reg_cachehook.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c index 2139fa7066..547eed392d 100644 --- a/source3/registry/reg_cachehook.c +++ b/source3/registry/reg_cachehook.c @@ -70,6 +70,7 @@ REGISTRY_HOOK* reghook_cache_find( char *keyname ) { char *key; int len; + REGISTRY_HOOK *hook; if ( !keyname ) return NULL; @@ -92,7 +93,11 @@ REGISTRY_HOOK* reghook_cache_find( char *keyname ) DEBUG(10,("reghook_cache_find: Searching for keyname [%s]\n", key)); - return sorted_tree_find( cache_tree, key ) ; + hook = sorted_tree_find( cache_tree, key ) ; + + SAFE_FREE( key ); + + return hook; } /********************************************************************** |