diff options
author | todd stecher <todd.stecher@gmail.com> | 2009-02-09 13:25:59 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-10 14:43:14 -0800 |
commit | 9d4d2f70cbf83919a11c194c8234de269c5d91ee (patch) | |
tree | a8379f0ebb9a6d23f78109e1beb57541b279cbd2 /source3/utils/net_cache.c | |
parent | fdd282afa3e80712790c5bbac84bf4f88644692a (diff) | |
download | samba-9d4d2f70cbf83919a11c194c8234de269c5d91ee.tar.gz |
S3: Fixes for coverity issues.
Diffstat (limited to 'source3/utils/net_cache.c')
-rw-r--r-- | source3/utils/net_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_cache.c b/source3/utils/net_cache.c index cabb6d52808..5e7db385155 100644 --- a/source3/utils/net_cache.c +++ b/source3/utils/net_cache.c @@ -216,7 +216,7 @@ static int net_cache_del(struct net_context *c, int argc, const char **argv) static int net_cache_get(struct net_context *c, int argc, const char **argv) { const char* keystr = argv[0]; - char* valuestr; + char* valuestr = NULL; time_t timeout; if (argc < 1 || c->display_usage) { @@ -226,6 +226,7 @@ static int net_cache_get(struct net_context *c, int argc, const char **argv) if (gencache_get(keystr, &valuestr, &timeout)) { print_cache_entry(keystr, valuestr, timeout, NULL); + SAFE_FREE(valuestr); return 0; } |