]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Free logfile.
authorRoy Marples <roy@marples.name>
Wed, 12 Apr 2017 22:51:45 +0000 (23:51 +0100)
committerRoy Marples <roy@marples.name>
Wed, 12 Apr 2017 22:51:45 +0000 (23:51 +0100)
src/dhcpcd.c

index 2f0bae11387a2d40657fa8c197df5b073f1d6d66..10583905bb3581a0d04bd5a6942bc02caed539fb 100644 (file)
@@ -1966,6 +1966,7 @@ exit1:
        if (ctx.options & DHCPCD_STARTED && !(ctx.options & DHCPCD_FORKED))
                loginfox(PACKAGE " exited");
        logclose();
+       free(ctx.logfile);
 #ifdef USE_SIGNALS
        if (ctx.options & DHCPCD_FORKED)
                _exit(i); /* so atexit won't remove our pidfile */