I would change:<div><br></div><div><pre style="word-wrap:break-word;white-space:pre-wrap">-  char *TargetName = canonicalize_file_name(FileName);
+  char *TargetName = MALLOC(char, PATH_MAX);
+  TargetName = realpath(FileName, TargetName);</pre><pre style="word-wrap:break-word"><font face="arial"><span style="white-space:normal">to</span></font></pre><pre style="word-wrap:break-word"><pre style="word-wrap:break-word;white-space:pre-wrap">
-  char *TargetName = canonicalize_file_name(FileName);
+  TargetName = realpath(FileName, NULL);</pre></pre><div>From <a href="http://linux.die.net/man/3/realpath">http://linux.die.net/man/3/realpath</a> To prevent a memory leak.</div><div><br></div><div>Theunis</div><br><div class="gmail_quote">
On 4 January 2012 21:59, Infonux <span dir="ltr"><<a href="mailto:infonux@gmail.com">infonux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wed, 4 Jan 2012 14:46:18 +0100<br>
Infonux <<a href="http://infonux__gmail.com" target="_blank">infonux__gmail.com</a>> wrote:<br>
<br>
solved by removing FADVISE and ...<br>
<br>
<a href="http://svn.exactcode.de/t2/trunk/package/base/uclibc/patches/vdr-realpath.patch" target="_blank">http://svn.exactcode.de/t2/trunk/package/base/uclibc/patches/vdr-realpath.patch</a><br>
<a href="http://www.vdr-portal.de/index.php?page=Thread&postid=641884" target="_blank">http://www.vdr-portal.de/index.php?page=Thread&postid=641884</a><br>
<br>
<br>_______________________________________________<br>
vdr mailing list<br>
<a href="mailto:vdr@linuxtv.org">vdr@linuxtv.org</a><br>
<a href="http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr" target="_blank">http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr</a><br>
<br></blockquote></div><br></div>