tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Brainy: bozohttpd memory leak
Hi,
not a kernel issue, but
----------------------- libexec/httpd/lua-bozo.c -----------------------
321 asprintf(&file, "/%s", uri);
}
if (file == NULL) {
free(prefix);
return 0;
}
if (request->hr_query && strlen(request->hr_query))
query = bozostrdup(httpd, request->hr_query);
else
query = NULL;
p = strchr(prefix, '/');
if (p == NULL){
free(prefix);
return 0;
}
------------------------------------------------------------------------
'file' and 'query' are leaked.
Found by Brainy.
Maxime
Home |
Main Index |
Thread Index |
Old Index