Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad
phreebird
phreebird-memleak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File phreebird-memleak.patch of Package phreebird
diff -rU2 phreebird_suite_1.02.orig/phreebird.c phreebird_suite_1.02/phreebird.c --- phreebird_suite_1.02.orig/phreebird.c 2011-04-08 11:51:41.000000000 +0200 +++ phreebird_suite_1.02/phreebird.c 2011-04-08 13:12:49.000000000 +0200 @@ -480,5 +480,5 @@ ldns_status status; ldns_rr *q; - int slen = sizeof(struct sockaddr); + int slen = sizeof(struct sockaddr), free_buf = store_cache->free_buf; char hashkey[512]; ght_hash_table_t *reqlist; @@ -564,4 +564,5 @@ if(ldns_rr_get_type(q) == LDNS_RR_TYPE_DS) ldns_rr_free(dnskey); + LDNS_FREE(store_cache); } @@ -600,4 +601,5 @@ ldns_buffer_free(lb); ldns_pkt_free(response); + LDNS_FREE(store_cache); } // CASE 3: We're signing something that the backend has to provide us the answers for. @@ -628,5 +630,5 @@ if(status<0) { ght_remove(opts->correlator, sizeof(hashkey), hashkey); - //LDNS_FREE(store_cache); + LDNS_FREE(store_cache); ght_finalize(reqlist); goto out; @@ -640,5 +642,5 @@ if(request) ldns_pkt_free(request); if(shortname) ldns_rdf_free(shortname); - if(store_cache->free_buf==1) { LDNS_FREE(buf);}; //FREE1(variant) + if(free_buf==1) { LDNS_FREE(buf);}; //FREE1(variant) }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor