On Tue, Jun 7, 2011 at 5:31 AM, Ronald Burgman <r.w.burg...@student.utwente.nl> wrote: > Now, I'm not sure if getpwuid actually allocates memory. Some > documentation does not mention anything about it; some mention it is not > possible; some mention that getpwuid can result in an ENOMEM > (allocation failed) error, > which clearly indicates that getpwuid tries to allocate some memory. > Since I'm not sure I thought I should ask the experts.
getpwuid() and friends do NOT return allocated memory, ever. They *may* allocate memory for internal purposes while computing their results, which is why they may return ENOMEM. There is no memory leak here. Nico -- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users