3 # User Vincent Wagelaar <vincent@ricardis.tudelft.nl>
4 # Date 1195499691 -3600
5 # Node ID bfe5900f95a82b60a488a75d73451e3130c8b9c5
6 # Parent 36cbf3b25cb6712e00b517c0ee98177096ddf83e
7 Free wg when context init fails patch by Evgeniy Dushistov
9 --- a/cache.c Mon Nov 19 20:01:08 2007 +0100
10 +++ b/cache.c Mon Nov 19 20:14:51 2007 +0100
11 @@ -286,13 +286,14 @@ static void *workgroup_listing_thread(vo
13 hash_t *ip_cache = hash_create(HASHCOUNT_T_MAX, NULL, NULL);
20 stringlist_t *servers = sl_init();
23 fprintf(stderr, "Malloc failed\n");
27 SMBCCTX *ctx = fusesmb_cache_new_context(&cfg);
29 @@ -377,7 +378,9 @@ use_popen:
30 hash_destroy(ip_cache);
32 smbc_free_context(ctx, 1);
40 @@ -552,6 +555,7 @@ int main(int argc, char *argv[])
42 smbc_free_context(ctx, 1);