mirror of https://github.com/getdnsapi/getdns.git
Remove redundant getdns_free_sync_request_memory.
Use getdns_dict_destroy instead. svn revision 171 getdns-api version 0.356
This commit is contained in:
parent
db3b62ab53
commit
ce29c4b899
|
@ -127,10 +127,6 @@ retregular = getdns_service_sync(
|
||||||
&dictarg
|
&dictarg
|
||||||
);
|
);
|
||||||
|
|
||||||
getdns_free_sync_request_memory(
|
|
||||||
dictarg
|
|
||||||
);
|
|
||||||
|
|
||||||
retregular = getdns_list_get_length(listarg, sizetptrarg);
|
retregular = getdns_list_get_length(listarg, sizetptrarg);
|
||||||
retregular = getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg);
|
retregular = getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg);
|
||||||
retregular = getdns_list_get_dict(listarg, sizetarg, dictptrarg);
|
retregular = getdns_list_get_dict(listarg, sizetarg, dictptrarg);
|
||||||
|
|
|
@ -64,7 +64,7 @@ int main()
|
||||||
}
|
}
|
||||||
/* Clean up */
|
/* Clean up */
|
||||||
getdns_context_destroy(this_context);
|
getdns_context_destroy(this_context);
|
||||||
getdns_free_sync_request_memory(this_response);
|
getdns_dict_destroy(this_response);
|
||||||
/* Assuming we get here, leave gracefully */
|
/* Assuming we get here, leave gracefully */
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Created at 2013-11-13-15-04-07*/
|
/* Created at 2013-11-13-15-10-57*/
|
||||||
#ifndef GETDNS_H
|
#ifndef GETDNS_H
|
||||||
#define GETDNS_H
|
#define GETDNS_H
|
||||||
|
|
||||||
|
@ -388,11 +388,6 @@ getdns_service_sync(
|
||||||
struct getdns_dict **response
|
struct getdns_dict **response
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
|
||||||
getdns_free_sync_request_memory(
|
|
||||||
struct getdns_dict *response
|
|
||||||
);
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
getdns_convert_dns_name_to_fqdn(
|
getdns_convert_dns_name_to_fqdn(
|
||||||
char *name_from_dns_response
|
char *name_from_dns_response
|
||||||
|
|
|
@ -473,11 +473,11 @@ getdns_service_sync(
|
||||||
<p>When you are done with the data in the response, use the following function so that the API can
|
<p>When you are done with the data in the response, use the following function so that the API can
|
||||||
free the memory from its internal pool.</p>
|
free the memory from its internal pool.</p>
|
||||||
|
|
||||||
<div class=forh>void
|
<pre>void
|
||||||
getdns_free_sync_request_memory(
|
getdns_dict_destroy(
|
||||||
struct getdns_dict *response
|
struct getdns_dict *response
|
||||||
);
|
);
|
||||||
</div>
|
</pre>
|
||||||
|
|
||||||
<h1>2. Data structures in the API</h1>
|
<h1>2. Data structures in the API</h1>
|
||||||
|
|
||||||
|
@ -1680,7 +1680,7 @@ as it is for the synchronous example, it is just done in <code>main()</code>.</p
|
||||||
<span class="p">}</span>
|
<span class="p">}</span>
|
||||||
<span class="cm">/* Clean up */</span>
|
<span class="cm">/* Clean up */</span>
|
||||||
<span class="n">getdns_context_destroy</span><span class="p">(</span><span class="n">this_context</span><span class="p">);</span>
|
<span class="n">getdns_context_destroy</span><span class="p">(</span><span class="n">this_context</span><span class="p">);</span>
|
||||||
<span class="n">getdns_free_sync_request_memory</span><span class="p">(</span><span class="n">this_response</span><span class="p">);</span>
|
<span class="n">getdns_dict_destroy</span><span class="p">(</span><span class="n">this_response</span><span class="p">);</span>
|
||||||
<span class="cm">/* Assuming we get here, leave gracefully */</span>
|
<span class="cm">/* Assuming we get here, leave gracefully */</span>
|
||||||
<span class="n">exit</span><span class="p">(</span><span class="n">EXIT_SUCCESS</span><span class="p">);</span>
|
<span class="n">exit</span><span class="p">(</span><span class="n">EXIT_SUCCESS</span><span class="p">);</span>
|
||||||
<span class="p">}</span>
|
<span class="p">}</span>
|
||||||
|
@ -2112,7 +2112,7 @@ default is the <span class=default>realloc</span> function.</p>
|
||||||
|
|
||||||
<h1>9. The Generated Files</h1>
|
<h1>9. The Generated Files</h1>
|
||||||
|
|
||||||
<p>There is <a href="getdns-0.355.tgz">a tarball</a> that includes the .h files,
|
<p>There is <a href="getdns-0.356.tgz">a tarball</a> that includes the .h files,
|
||||||
the examples, and so on. The examples all make, even though there is no API implementation, based
|
the examples, and so on. The examples all make, even though there is no API implementation, based
|
||||||
on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine
|
on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine
|
||||||
on the Macintosh and Ubuntu; help is definitely appreciated on making the build process
|
on the Macintosh and Ubuntu; help is definitely appreciated on making the build process
|
||||||
|
|
Loading…
Reference in New Issue