diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-29 20:15:09 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-29 20:15:09 -0700 |
commit | 70da7001e81363ed6ef2c4727c512daf53ae29fe (patch) | |
tree | 7a1c0c6bccf600196c71f5e062251813f50eae26 | |
parent | a3bb07efb1757c33d70e2e1928219d12a4dd6498 (diff) |
Use malloc/calloc/realloc/free directly
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | src/theatre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theatre.c b/src/theatre.c index ad055c5a..fc68f275 100644 --- a/src/theatre.c +++ b/src/theatre.c @@ -46,7 +46,7 @@ TheatrePtr DetectTheatre(GENERIC_BUS_Ptr b) return NULL; } - t = xcalloc(1,sizeof(TheatreRec)); + t = calloc(1,sizeof(TheatreRec)); t->VIP = b; t->theatre_num = -1; t->mode=MODE_UNINITIALIZED; @@ -81,7 +81,7 @@ TheatrePtr DetectTheatre(GENERIC_BUS_Ptr b) if(t->theatre_num < 0) { - xfree(t); + free(t); return NULL; } |