libcom/osi: fix potential leak in default/osdThreadHooks.c
(found by sonar/cppcheck)
This commit is contained in:
1 parent
cd47bbf99b
commit
579fc9d0c7
1 file changed
+1
@@ -72,6 +72,7 @@ epicsShareFunc int epicsThreadHookAdd(EPICS_THREAD_HOOK_ROUTINE hook)
|
||||
return 0;
|
||||
}
|
||||
fprintf(stderr, "epicsThreadHookAdd: Locking problem\n");
|
||||
free(pHook);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user