All recent versions of CTDB contain a use after free and resource leak bug. Reporting them under a single bug because both issues are contained within a couple of lines of code, so don't really need to be tracked separately.
This bug was referenced in samba master: 88e09693a434d06ab57b14c1c1afe5996422ca0a 67f139ad28c6a771bac488b09d52dda81f3ffe81
Created attachment 18959 [details] Patch for v4-24-test, v4-23-test Cherry picks cleanly into v4-24-test. Resulting patch applies cleanly to v4-23-test with git am. Compiles in both versions. No relevant code differences to warrant deep testing, since this is a fix to an error path.
Comment on attachment 18959 [details] Patch for v4-24-test, v4-23-test Re-assigning for inclusion in 4.24 and 4.23.
This bug was referenced in samba v4-24-test: 947903170c1e62d9adcb40797fb74cf2bf8f4c64 030c6f178f888ea28eca8e2e9e49e5dd56e15d44
This bug was referenced in samba v4-24-stable (Release samba-4.24.2): 947903170c1e62d9adcb40797fb74cf2bf8f4c64 030c6f178f888ea28eca8e2e9e49e5dd56e15d44