geoffgarside/nginx-x-rid-header — comment on commit f1bb19d7087386e89b2332ff4e1ae128b534e341
File:  line 0
By gabor:

hi, i was solving the same problem (i pushed it to my github account today) at https://github.com/gabor/nginx-x-rid-header/commit/0daa3cc283d91a279a6013734fd78264582fce51 . it's very similar, except i handle the result from uuid_to_string differently. i think it allocates the char-buffer, so i copy the content out of it, and deallocate it. the reason is that the source code says it uses "asprintf" (http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/uuid/uuid_to_string.c?rev=1.3.22.1.6.1;content-type=text%2Fplain;only_with_tag=RELENG_8_2_0_RELEASE) and asprintf allocates the buffer (http://www.manpages.info/freebsd/printf.3.html).

i'm not 100% sure if i'm correct or not, C is not my primary programming language :-), so what do you think?