valgrind - Address -— is 0 bytes after a block of size 8 alloc'd

前端 未结 2 1879
猫巷女王i
猫巷女王i 2021-02-11 20:35

First, I know similar questions have been asked. However, I\'d like to have a more general simple question with really primitive C data types. So here it is.

In

2条回答
  •  失恋的感觉
    2021-02-11 21:11

    I just had this message because I had changed a class (added a field, so I had changed its size) and not rebuilt all sources that included the header. So some modules still tried to use the old size.

提交回复
热议问题