Lines Matching refs:ctx
72 hprof_context_t *ctx = malloc(sizeof(*ctx));
73 if (ctx == NULL) {
81 hprofContextInit(ctx, strdup(outputFileName), fp, false, directToDdms);
83 assert(ctx->fp != NULL);
85 return ctx;
213 * Free any heap-allocated items in "ctx", and then free "ctx" itself.
216 hprofFreeContext(hprof_context_t *ctx)
218 assert(ctx != NULL);
220 if (ctx->fp != NULL)
221 fclose(ctx->fp);
222 free(ctx->curRec.body);
223 free(ctx->fileName);
224 free(ctx->fileDataPtr);
225 free(ctx);