Ticket #8617: avoid_double_free.patch

File avoid_double_free.patch, 525 bytes (added by oco, 11 years ago)
  • src/apps/poorman/libhttpd/libhttpd.c

    diff --git a/src/apps/poorman/libhttpd/libhttpd.c b/src/apps/poorman/libhttpd/libhttpd.c
    index b982d15..dd9f5f6 100644
    a b ls( httpd_conn* hc )  
    27132713    send_mime(
    27142714        hc, 200, ok200title, "", "", "text/html; charset=%s", (off_t) -1,
    27152715        hc->sb.st_mtime );
     2716    free(de);
    27162717    }
    27172718    else if ( hc->method == METHOD_GET )
    27182719    {
    ls( httpd_conn* hc )  
    29472948    free(de);
    29482949    return -1;
    29492950    }
    2950     free(de);
    29512951    return 0;
    29522952    }
    29532953