summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTim Ruehsen <tim.ruehsen@gmx.de>2012-09-10 09:12:19 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-09-10 09:12:19 +0200
commitdde1dbd4cddb9e05badde2b51d9e6820ce63e2b1 (patch)
tree514df02e9d900e00e0e0256638694f857597bf8f /examples
parent745383861735f177e1267e6beb3cea794fc88795 (diff)
downloadnettle-dde1dbd4cddb9e05badde2b51d9e6820ce63e2b1.tar.gz
Deleted useless allocations.
Diffstat (limited to 'examples')
-rw-r--r--examples/base16enc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/examples/base16enc.c b/examples/base16enc.c
index c3cb58f4..c1a302d1 100644
--- a/examples/base16enc.c
+++ b/examples/base16enc.c
@@ -48,20 +48,6 @@ int
main(int argc UNUSED, char **argv UNUSED)
{
- /* "buffer" will hold the bytes from disk: */
- uint8_t * buffer = (uint8_t *) malloc (CHUNK_SIZE * sizeof(uint8_t));
- if (buffer == NULL) {
- fprintf (stderr, "Cannot allocate read buffer.\n");
- return EXIT_FAILURE;
- }
-
- /* "result" will hold bytes before output: */
- uint8_t * result = (uint8_t *) malloc (ENCODED_SIZE * sizeof(uint8_t));
- if (result == NULL) {
- fprintf (stderr, "Cannot allocate write buffer.\n");
- return EXIT_FAILURE;
- }
-
#ifdef WIN32
_setmode(0, O_BINARY);
#endif