mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-22 14:58:22 +00:00
defensive if
This commit is contained in:
parent
d06df97716
commit
b6c0beaf8b
@ -9,9 +9,12 @@ KZGSettings *settings;
|
||||
|
||||
void reset_trusted_setup()
|
||||
{
|
||||
free_trusted_setup(settings);
|
||||
free(settings);
|
||||
settings = NULL;
|
||||
if (settings)
|
||||
{
|
||||
free_trusted_setup(settings);
|
||||
free(settings);
|
||||
settings = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void throw_exception(JNIEnv *env, const char *message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user