On Thu, Dec 24, 2015 at 10:28:39AM -0800, William Tu wrote:
> Free memory allocated from table_add_column and table_add_row. Call
> stack is below:
>     xrealloc (util.c:123)
>     table_add_column (table.c:146) or table_add_row (table.c:172)
>     do_list_tables (ovsdb-client.c:449)
>     main (ovsdb-client.c:151)
> 
> Signed-off-by: William Tu <[email protected]>
> Signed-off-by: Daniele Di Proietto <[email protected]>
> Co-authored-by: Daniele Di Proietto <[email protected]>

Clang reports the following, and I think it's right:

../ovsdb/ovsdb-client.c:137:18: error: variable 'database' is uninitialized when
      used here [-Werror,-Wuninitialized]
            free(database);
                 ^~~~~~~~
../ovsdb/ovsdb-client.c:87:19: note: initialize the variable 'database' to
      silence this warning
    char *database;
                  ^
                   = NULL
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to