summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-03-13 13:49:38 +0000
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-03-20 10:30:43 +0000
commitef90455dbd6f6d6d4a88927e8c00f8ddfc68ee62 (patch)
tree4fcf65e1a3089b45bec9d60d22e26b4c73465d0a
parent063b492f3222110b800dda924e5f36fa7fc7dd19 (diff)
fix azy_net_free
-rw-r--r--src/lib/azy_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/azy_net.c b/src/lib/azy_net.c
index c692de8..326f881 100644
--- a/src/lib/azy_net.c
+++ b/src/lib/azy_net.c
@@ -157,7 +157,6 @@ azy_net_free(Azy_Net *net)
157 return; 157 return;
158 } 158 }
159 159
160 AZY_MAGIC_SET(net, AZY_MAGIC_NONE);
161 if (net->http.headers) 160 if (net->http.headers)
162 eina_hash_free(net->http.headers); 161 eina_hash_free(net->http.headers);
163 eina_stringshare_del(net->http.req.http_path); 162 eina_stringshare_del(net->http.req.http_path);
@@ -168,8 +167,9 @@ azy_net_free(Azy_Net *net)
168 if (net->http.post_headers_buf) eina_binbuf_free(net->http.post_headers_buf); 167 if (net->http.post_headers_buf) eina_binbuf_free(net->http.post_headers_buf);
169 if (net->overflow) eina_binbuf_free(net->overflow); 168 if (net->overflow) eina_binbuf_free(net->overflow);
170 if (net->separator) eina_strbuf_free(net->separator); 169 if (net->separator) eina_strbuf_free(net->separator);
171 memset(net, 0, sizeof(Azy_Net)); /* zero out data for security */
172 if (net->timer) ecore_timer_del(net->timer); 170 if (net->timer) ecore_timer_del(net->timer);
171 memset(net, 0, sizeof(Azy_Net)); /* zero out data for security */
172 AZY_MAGIC_SET(net, AZY_MAGIC_NONE);
173 free(net); 173 free(net);
174} 174}
175 175