diff options
| author | J08nY | 2017-04-20 23:21:00 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-21 21:43:34 +0200 |
| commit | 3b724ffc5aec0d53c698af4c04ae6396775c0616 (patch) | |
| tree | 3818b7f81b58a314b8b64b133ff7bc7f26d00376 /src/math | |
| parent | ca9aba651caacfd80ecc35afe929aaaa91bb2da4 (diff) | |
| download | ecgen-3b724ffc5aec0d53c698af4c04ae6396775c0616.tar.gz ecgen-3b724ffc5aec0d53c698af4c04ae6396775c0616.tar.zst ecgen-3b724ffc5aec0d53c698af4c04ae6396775c0616.zip | |
Add anomalous curve generation
Diffstat (limited to 'src/math')
| -rw-r--r-- | src/math/arg.c | 4 | ||||
| -rw-r--r-- | src/math/types.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/math/arg.c b/src/math/arg.c index e313adb..d2eba9b 100644 --- a/src/math/arg.c +++ b/src/math/arg.c @@ -16,6 +16,10 @@ arg_t *arg_new(void) { void arg_free(arg_t **arg) { if (*arg) { + if ((*arg)->mallocd) { + pari_free((*arg)->mallocd); + (*arg)->mallocd = NULL; + } pari_free(*arg); *arg = NULL; } diff --git a/src/math/types.h b/src/math/types.h index 6793453..8a7d004 100644 --- a/src/math/types.h +++ b/src/math/types.h @@ -67,6 +67,7 @@ typedef enum { typedef struct { const void *args; size_t nargs; + void *mallocd; } arg_t; /** |
