Check-in [75e4672f6a]
Overview
Comment:Yet another call to free() missing
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:75e4672f6a636a3b96ea5fda8dd1cd9c54774d3b
User & Date: rkeene on 2014-05-04 07:20:45
Other Links: manifest | tags
Context
2014-05-04
07:27
Updated ignores with Win32 targets check-in: 1ffb02b806 user: rkeene tags: trunk
07:20
Yet another call to free() missing check-in: 75e4672f6a user: rkeene tags: trunk
07:17
Added missing call to free() check-in: 48a9cde717 user: rkeene tags: trunk
Changes

Modified build/tcc-patches/0.9.26/tcc-0.9.26-win32useopenlibs.diff from [21b33f7611] to [44e95e05fe].

     1      1   diff -uNr tcc-0.9.26.orig/tccpe.c tcc-0.9.26-1win32useopenlibs/tccpe.c
     2      2   --- tcc-0.9.26.orig/tccpe.c	2013-02-15 08:24:00.000000000 -0600
     3         -+++ tcc-0.9.26-1win32useopenlibs/tccpe.c	2014-05-04 02:16:34.590555001 -0500
            3  ++++ tcc-0.9.26-1win32useopenlibs/tccpe.c	2014-05-04 02:20:25.285150002 -0500
     4      4   @@ -38,6 +38,9 @@
     5      5    # define ADDR3264 DWORD
     6      6    #endif
     7      7    
     8      8   +#ifdef TCC_IS_NATIVE
     9      9   +#include <psapi.h>
    10     10   +#endif
................................................................................
    36     36   +                                }
    37     37   +                            }
    38     38   +                        }
    39     39   +                        tcc_free(modules);
    40     40                        }
    41     41                        if (!v)
    42     42                            tcc_error_noabort("undefined symbol '%s'", name);
    43         -@@ -1209,9 +1232,34 @@
           43  +@@ -1209,9 +1232,35 @@
    44     44    
    45     45                const char *name = symtab_section->link->data + sym->st_name;
    46     46                unsigned type = ELFW(ST_TYPE)(sym->st_info);
    47     47   -            int imp_sym = pe_find_import(pe->s1, sym);
    48     48   +            int imp_sym;
    49     49                struct import_symbol *is;
    50     50    
................................................................................
    67     67   +                        if (addr) {
    68     68   +                            put_elf_sym( pe->s1->dynsymtab_section, (ADDR3264) addr, sizeof(addr), ELFW(ST_INFO)(STB_GLOBAL, STT_OBJECT), 0, SHN_UNDEF, symname);
    69     69   +                            imp_sym = pe_find_import(pe->s1, sym);
    70     70   +                            break;
    71     71   +                        }
    72     72   +                    }
    73     73   +                }
           74  ++                tcc_free(modules);
    74     75   +            }
    75     76   +
    76     77                if (0 == imp_sym)
    77     78                    goto not_found;
    78     79