Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Iiiirk. It leaks
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 Apr 2006 00:33:37 +0000 (00:33 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 12 Apr 2006 00:33:37 +0000 (00:33 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2133 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/ex.c

index 7e6e63f..d579bce 100644 (file)
@@ -173,6 +173,7 @@ void xbt_ex_setup_backtrace(xbt_ex_t *e)  {
       fgets(line_pos,1024,subpipe);
       line_pos[strlen(line_pos)-1]='\0';
       pclose(subpipe);
       fgets(line_pos,1024,subpipe);
       line_pos[strlen(line_pos)-1]='\0';
       pclose(subpipe);
+      free(subcmd);
 
       /* check whether the trick worked */
       if (strcmp("??",line_func)) {
 
       /* check whether the trick worked */
       if (strcmp("??",line_func)) {