<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuenishi</author_name>
  <author_url>https://blog.hatena.ne.jp/kuenishi/</author_url>
  <blog_title>kuenishi's blog</blog_title>
  <blog_url>https://kuenishi.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>メモリリークに悩まされている技術者は多いだろう。メモリリークが嫌でGCという技術が開発されたといっても過言ではないし、歴史的にはC++からJavaへシフトが起きた大きな理由のひとつといっていい。Unix系の簡単な定義でいえば、ヒープ領域を指すポインタ（アドレス）をロストしてしまえばそのメモリはもう漏れたといってよい。たとえばこういったコードだ。 struct { int i; char c; } spam; int main(){ void* p; int i; for(i=0; i&lt;1024; ++i){ p = malloc(sizeof(struct spam)); } pause();…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkuenishi.hatenadiary.jp%2Fentry%2F2013%2F04%2F23%2F162205&quot; title=&quot;メモリリークとは何か - kuenishi&amp;#39;s blog&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>http://farm5.staticflickr.com/4057/4248316700_5de50d5082.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-04-23 16:22:05</published>
  <title>メモリリークとは何か</title>
  <type>rich</type>
  <url>https://kuenishi.hatenadiary.jp/entry/2013/04/23/162205</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
