Ignore:
Timestamp:
Jun 29, 2009, 7:19:14 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3144@localhost: bruno | 2009-06-26 12:18:08 +0200

  • Remove mr_string.c|.h useless and in de=uplication with mr_str.c|.h
  • Solve with valgrind's help some memroy leak (harmless mostly)
  • Solve a seg fault at end, when unallocating a bkpinfo member after the strcuture disallocation !
  • after mr_strtok, memory ssociated with the token needs to be free
  • Adds a new function free_newt_stuff to free newt related allocated memory
  • Do not exit if mr_free is unsuccessful, and only warn when debug > 8
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-filelist.c

    r2230 r2241  
    1717#include "libmondo-gui-EXT.h"
    1818#include "libmondo-tools-EXT.h"
    19 #include "mr_string.h"
    2019#include "mr_mem.h"
     20#include "mr_str.h"
    2121
    2222#include <time.h>
     
    13831383    if (p) {
    13841384        if (!strcmp(p, "/.") || !strcmp(p, "/..")) {
     1385            mr_free(dir);
    13851386            return (0);
    13861387        }
     
    13961397          mr_asprintf(&find_excludes,"%s -path %s -prune -o", strtmp, token);
    13971398          paranoid_free(strtmp);
    1398           paranoid_free(token);
     1399          mr_free(token);
    13991400        }
    14001401#if linux
     
    15171518    paranoid_free(new_with_spaces);
    15181519    paranoid_free(skip_these);
    1519     paranoid_free(dir);
     1520    mr_free(dir);
    15201521
    15211522    if (dip) {
Note: See TracChangeset for help on using the changeset viewer.