summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
df32293)
the tmp pointer is used only for directory entries. However, it was allocated
unconditionally and was not freed in case of regular files.
m = s.st_mode;
if (!S_ISREG(m) && !S_ISDIR(m))
continue;
m = s.st_mode;
if (!S_ISREG(m) && !S_ISDIR(m))
continue;
- tmp = make_message("%s/%s", dirname, entry->d_name);
+ tmp = make_message("%s/%s", dirname, entry->d_name);
ret = scan_dir(tmp);
free(tmp);
if (ret < 0)
ret = scan_dir(tmp);
free(tmp);
if (ret < 0)