Changeset 3292 in MondoRescue for branches/3.2/mondo/src/lib
- Timestamp:
- May 27, 2014, 5:53:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/lib/mr_mem.c
r3208 r3292 74 74 size_t n = 0; 75 75 76 if (*lineptr != NULL) { 77 /* free a variable which should be already free */ 78 mr_msg_int(1,line,file,"mr_getline_ found a non freed variable here"); 79 mr_free_int(lineptr,line,file); 80 } 76 81 ret = getline(lineptr,&n,fd); 77 82 if ((ret == -1) && (! feof(fd))) { … … 81 86 /* We reached end of file, allocating empty string */ 82 87 if (ret == -1) { 83 mr_asprintf_int(lineptr, line, file, ""); 88 mr_free_int(lineptr,line,file); 89 mr_asprintf_int(lineptr,line,file,""); 84 90 } 85 91 }
Note:
See TracChangeset
for help on using the changeset viewer.