~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to mgmt/web2/WebHttpContext.cc

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
WebHttpContextCreate(WebHttpConInfo * whci)
46
46
{
47
47
 
48
 
  WebHttpContext *whc = (WebHttpContext *) xmalloc(sizeof(WebHttpContext));
 
48
  WebHttpContext *whc = (WebHttpContext *)ats_malloc(sizeof(WebHttpContext));
49
49
 
50
50
  // memset to 0; note strings are zero'd too
51
51
  memset(whc, 0, sizeof(WebHttpContext));
100
100
      ink_hash_table_destroy(whc->submit_warn_ht);
101
101
    if (whc->submit_note_ht)
102
102
      ink_hash_table_destroy(whc->submit_note_ht);
103
 
    if (whc->top_level_render_file)
104
 
      xfree(whc->top_level_render_file);
105
 
    if (whc->cache_query_result)
106
 
      xfree(whc->cache_query_result);
107
 
    xfree(whc);
 
103
 
 
104
    ats_free(whc->top_level_render_file);
 
105
    ats_free(whc->cache_query_result);
 
106
    ats_free(whc);
108
107
  }
109
108
}