Skip to content

Commit

Permalink
ovsdb-server: Fix memory leak in ovsdb_server_get_sync_exclude_tables().
Browse files Browse the repository at this point in the history
Fixes: 3109b4e ("ovsdb: Add blacklist_tables")
Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Andy Zhou <[email protected]>
  • Loading branch information
blp committed Sep 9, 2016
1 parent b81e590 commit 5975d1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ovsdb/ovsdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,9 @@ ovsdb_server_get_sync_exclude_tables(struct unixctl_conn *conn,
const char *argv[] OVS_UNUSED,
void *arg_ OVS_UNUSED)
{
unixctl_command_reply(conn, get_blacklist_tables());
char *reply = get_blacklist_tables();
unixctl_command_reply(conn, reply);
free(reply);
}

static void
Expand Down

0 comments on commit 5975d1f

Please sign in to comment.