Skip to content

Commit

Permalink
Problem: zframe_strhex is needlessly using zmalloc
Browse files Browse the repository at this point in the history
Solution: change it to malloc.
  • Loading branch information
Asmod4n committed Sep 19, 2015
1 parent 3c4b82f commit 5229433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zframe.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ zframe_strhex (zframe_t *self)

size_t size = zframe_size (self);
byte *data = zframe_data (self);
char *hex_str = (char *) zmalloc (size * 2 + 1);
char *hex_str = (char *) malloc (size * 2 + 1);
if (!hex_str)
return NULL;

Expand Down

0 comments on commit 5229433

Please sign in to comment.