Ignore:
Timestamp:
Sep 20, 2009, 2:53:32 AM (15 years ago)
Author:
Bruno Cornec
Message:

severity_of_difference is now allocating memory freed by the caller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/newt-specific.c

    r2382 r2414  
    14011401void popup_changelist_from_file(char *source_file) {
    14021402
    1403         char *reason;
     1403        char *reason = NULL;
    14041404        newtComponent myForm;
    14051405        newtComponent bClose;
     
    14721472        newtFormAddComponents(myForm, headerMsg, fileListbox, bClose, bSelect, NULL);
    14731473
    1474         malloc_string(reason);
    14751474        while (!finished) {
    14761475            b_res = newtRunForm(myForm);
     
    14871486                    currline = i;
    14881487                    if (filelist->entries > 0) {
    1489                         severity_of_difference(filelist->el[currline].  filename, reason);
     1488                        severity_of_difference(filelist->el[currline].  filename, &reason);
    14901489                        mr_asprintf(tmp, "%s --- %s", filelist->el[currline].filename, reason);
    14911490
    14921491                        popup_and_OK(tmp);
    14931492                        mr_free(tmp);
     1493                        mr_free(reason);
    14941494                    }
    14951495                }
    14961496            }
    14971497        }
    1498         paranoid_free(reason);
    14991498
    15001499        newtFormDestroy(myForm);
Note: See TracChangeset for help on using the changeset viewer.