Skip to content

Commit

Permalink
Poorman : avoid a double free in ls method. Should fix #8617.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Madia <mattmadia@gmail.com>
  • Loading branch information
oco27 authored and mmadia committed Dec 9, 2012
1 parent f0cacbb commit a6f39df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/poorman/libhttpd/libhttpd.c
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -2947,7 +2948,6 @@ ls( httpd_conn* hc )
free(de);
return -1;
}
free(de);
return 0;
}

Expand Down

0 comments on commit a6f39df

Please sign in to comment.