Don't leave dangling pointers in Free functions
While these are mostly called during teardown of larger structures that are about to themselves be freed, there's no guarantee that will always be the case, so try to be safer here. [ This bug was found by the Parfait 4.0 bug checking tool. http://labs.oracle.com/pls/apex/f?p=labs:49:::::P49_PROJECT_ID:13 ] v2: Deduplicate & simplify pointer clearing in _XFreeEventCookies as suggested by @keithp Signed-off-by:Alan Coopersmith <alan.coopersmith@oracle.com>
parent
7d70e302
No related branches found
No related tags found
Checking pipeline status
Showing
- modules/im/ximcp/imTrX.c 1 addition, 0 deletionsmodules/im/ximcp/imTrX.c
- modules/im/ximcp/imTrans.c 1 addition, 0 deletionsmodules/im/ximcp/imTrans.c
- src/Context.c 1 addition, 0 deletionssrc/Context.c
- src/IntAtom.c 1 addition, 0 deletionssrc/IntAtom.c
- src/KeyBind.c 1 addition, 0 deletionssrc/KeyBind.c
- src/RegstFlt.c 1 addition, 0 deletionssrc/RegstFlt.c
- src/XlibInt.c 1 addition, 2 deletionssrc/XlibInt.c
- src/locking.c 1 addition, 0 deletionssrc/locking.c
- src/xcb_disp.c 1 addition, 0 deletionssrc/xcb_disp.c
- src/xkb/XKBUse.c 1 addition, 0 deletionssrc/xkb/XKBUse.c
- src/xlibi18n/lcGeneric.c 7 additions, 1 deletionsrc/xlibi18n/lcGeneric.c
Loading
Please register or sign in to comment