]> sourceware.org Git - lvm2.git/commitdiff
man_generator: release buffer after use
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 30 Jun 2017 17:36:24 +0000 (19:36 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 30 Jun 2017 18:39:02 +0000 (20:39 +0200)
Although ATM this code has no memory management at all,
it will not make any harm to release some memory,
when it's not needed anymore.

tools/command.c

index afd88316a559f8fa44d50c7740de33ac6e9b8fdc..c094f124d77d9994ccf8cf14549dc01dee4cf548 100644 (file)
@@ -2279,6 +2279,7 @@ static void print_val_man(struct command_name *cname, int opt_enum, int val_enum
                        else
                                printf("\\fB%s\\fP", line_argv[i]);
                }
+               dm_free(line);
                return;
        }
 
This page took 0.036738 seconds and 5 git commands to generate.