psmedley/at-funcs

Need to free allocated buffer after it has been used and not before

Closed this issue · 0 comments

if (proc_file != proc_buf)

Move that after the "rmdir"/"unlink" call (logically in line with all the other places where you have that "openat_proc_name" and "free" combination of calls).