<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>harg</author_name>
  <author_url>https://blog.hatena.ne.jp/harg/</author_url>
  <blog_title>[・ _ゝ・]日記を書くはやみずさん</blog_title>
  <blog_url>https://harg.hatenadiary.org/</blog_url>
  <categories>
    <anon>大学</anon>
  </categories>
  <description>C言語のテストに向けて少し遊ぶ。構造体を使って、バイナリーツリーを構成してみた。ツリーを作る段階で、mallocしまくるので、きちんとfreeする練習もしてみた。すると、ツリーのノードのメモリを再帰的に解放していくと、ノードが6個しかないのに解放に1秒くらい時間がかかる。なんでだーと思ってprintfデバッグしていたら、どうやら再帰的にfreeするどこかの段階でプログラムが落ちていることが発覚。何もエラーを吐かずに落ちることって普通なんですかねぇ？ツリーの根っこのノードは、mallocじゃなくてstruct node tree; みたいに確保してたから、それをfreeしようとして落ちていたこと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharg.hatenadiary.org%2Fentry%2F20070108%2F1168251486&quot; title=&quot; C言語で - [・ _ゝ・]日記を書くはやみずさん&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-01-08 19:18:06</published>
  <title> C言語で</title>
  <type>rich</type>
  <url>https://harg.hatenadiary.org/entry/20070108/1168251486</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
