]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
coverity: fix memory leak in lldpcli
authorVincent Bernat <vincent@bernat.im>
Tue, 8 Apr 2014 07:11:21 +0000 (09:11 +0200)
committerVincent Bernat <vincent@bernat.im>
Tue, 8 Apr 2014 07:11:21 +0000 (09:11 +0200)
CID 1198257 (#1 of 1): Resource leak (RESOURCE_LEAK)

src/client/lldpcli.c

index be3d3622625e1060e820f4910fd09ec61981ca7e..aa30216d32b7436bb97d4ff3e11875daa5f61a81 100644 (file)
@@ -216,6 +216,7 @@ _cmd_complete(int all)
                goto end;
        }
        /* No completion or several completion available. */
+       free(compl);
        fprintf(stderr, "\n");
        rl_forced_update_display();
        rc = 0;