Added valgrind memory leak tests for backend. Fixed some minor leaks and file descriptor closes.
This commit is contained in:
parent
add43d250d
commit
4c0b412e9f
34 changed files with 318 additions and 382 deletions
|
|
@ -160,9 +160,11 @@ clicon_file_dirent(const char *dir,
|
|||
|
||||
qsort((void *)new, nent, sizeof(*new), clicon_file_dirent_sort);
|
||||
*ent = new;
|
||||
new = NULL;
|
||||
retval = nent;
|
||||
|
||||
quit:
|
||||
if (new)
|
||||
free(new);
|
||||
if (dirp)
|
||||
closedir(dirp);
|
||||
if (regexp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue