[ovs-git] [ovn-org/ovn] f6e334: ovn-northd-ddlog: Fix memleak when destroying cont...

Dumitru Ceara noreply at github.com
Mon Jun 14 20:15:14 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: f6e33432dc5861d67f7464fb3232102db49f338d
      https://github.com/ovn-org/ovn/commit/f6e33432dc5861d67f7464fb3232102db49f338d
  Author: Dumitru Ceara <dceara at redhat.com>
  Date:   2021-06-14 (Mon, 14 Jun 2021)

  Changed paths:
    M northd/ovn-northd-ddlog.c

  Log Message:
  -----------
  ovn-northd-ddlog: Fix memleak when destroying context.

This is benign but AddressSanitizer was complaining about it:

Direct leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x7fa93cd6d667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
    #1 0x1be8d3e in xmalloc__ lib/util.c:137
    #2 0x1be8e1a in xmalloc lib/util.c:172
    #3 0x1b799d3 in json_create lib/json.c:1451
    #4 0x1b74314 in json_integer_create lib/json.c:263
    #5 0x1b7d38a in jsonrpc_create_id lib/jsonrpc.c:563
    #6 0x1b7d3a5 in jsonrpc_create_request lib/jsonrpc.c:570
    #7 0x1b8d851 in ovsdb_cs_send_transaction lib/ovsdb-cs.c:1376
    #8 0x40b017 in northd_send_output_only_data_request northd/ovn-northd-ddlog.c:290
    #9 0x40c802 in northd_run northd/ovn-northd-ddlog.c:568
    #10 0x410225 in main northd/ovn-northd-ddlog.c:1289
    #11 0x7fa93c4a9081 in __libc_start_main ../csu/libc-start.c:308

Signed-off-by: Dumitru Ceara <dceara at redhat.com>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list