Poorman : avoid a double free in ls method. Should fix #8617.

Signed-off-by: Matt Madia <[email protected]>
This commit is contained in:
Olivier Coursière
2012-12-09 08:38:08 -05:00
committed by Matt Madia
parent f0cacbb32b
commit a6f39df3f7
+1 -1
View File
@@ -2713,6 +2713,7 @@ ls( httpd_conn* hc )
send_mime(
hc, 200, ok200title, "", "", "text/html; charset=%s", (off_t) -1,
hc->sb.st_mtime );
free(de);
}
else if ( hc->method == METHOD_GET )
{
@@ -2947,7 +2948,6 @@ ls( httpd_conn* hc )
free(de);
return -1;
}
free(de);
return 0;
}