Skip to content

Commit

Permalink
MFH: allocate_new_resource() handles the malloc() for us. Don't leak …
Browse files Browse the repository at this point in the history
…by mallocing twice.
  • Loading branch information
sgolemon committed Aug 29, 2005
1 parent 805ca9c commit 5fc9d15
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion TSRM/TSRM.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ void *tsrm_new_interpreter_context(void)

current = tsrm_tls_get();

new_ctx = malloc(sizeof(*new_ctx));
allocate_new_resource(&new_ctx, thread_id);

/* switch back to the context that was in use prior to our creation
Expand Down

0 comments on commit 5fc9d15

Please sign in to comment.