[tex-live] shell_escape extension patch

Akira Kakuto kakuto at fsci.fuk.kindai.ac.jp
Sun Jun 18 01:21:51 CEST 2006


Hi Jonathan,

>In the non-pdftex case, rather than freeing fullnameoffile right  
>after opening the pipe, you can free it right before allocating a new  
>one:
>
>        fname = (string)xmalloc(strlen(nameoffile+1));
>        strcpy(fname,nameoffile+1);
>+#if !defined(pdfTeX) && !defined(pdfeTeX)
>+      if (fullnameoffile) free(fullnameoffile);
>+      fullnameoffile = xstrdup(fname);
>+#endif
>        *f_ptr = popen(fname+1,"r");
>        free(fname);
>
>That way, the new value stays around long enough to be useful.

I think you are right and I was wrong. Thanks a lot.

Thanks,
Akira


More information about the tex-live mailing list