diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-09-21 21:56:37 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-09-21 21:56:37 +0200 |
commit | ca197d7fc187e205a0e733be1722e6e8e03515c2 (patch) | |
tree | 802f47626c267b21ca81876dbc2db63a8aa79828 /src/zonefile.c | |
parent | 4127daa65ed8962900b386e138577a83bbc6baa5 (diff) | |
download | dns-ca197d7fc187e205a0e733be1722e6e8e03515c2.tar.gz |
zonefile: fix memory leak from getline
Diffstat (limited to 'src/zonefile.c')
-rw-r--r-- | src/zonefile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zonefile.c b/src/zonefile.c index a15b374..1b0d036 100644 --- a/src/zonefile.c +++ b/src/zonefile.c @@ -137,6 +137,9 @@ int zonefile_to_database (database_t *_database, char* _file) { line = NULL; } + if(line) + free(line); + fclose(zfile); return 0; } |