Initial commit
[authen-passphrase-scrypt.git] / scrypt-1.2.1 / tests / valgrind / potential-memleaks.c
CommitLineData
0c1f3509
MG
1#include <stdio.h>
2#include <stdlib.h>
3
4#define FGETS_BUFSIZE 64
5
6/* Problem with FreeBSD 10.3 fgets() with stdin. */
7static void
8pl_freebsd_fgets()
9{
10 char buf[FGETS_BUFSIZE];
11
12 if (fgets(buf, FGETS_BUFSIZE, stdin) == NULL)
13 exit(1);
14}
15
16int
17main()
18{
19
20 /* Test potential memory leaks. */
21 pl_freebsd_fgets();
22
23 /* Success! */
24 exit(0);
25}
This page took 0.010774 seconds and 4 git commands to generate.