mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-24 10:26:10 +00:00
Fix memory leak.
(Logical change 1.192) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@631 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
8161106dfe
commit
c4d6184eb5
@ -170,7 +170,8 @@ test_subscription()
|
||||
|
||||
if (pfd.revents & (POLLERR|POLLHUP)) {
|
||||
printf("Error recieved on poll fd %lld\n", fd);
|
||||
return SA_AIS_ERR_BAD_OPERATION;
|
||||
result = SA_AIS_ERR_BAD_OPERATION;
|
||||
goto sub_fin;
|
||||
}
|
||||
do {
|
||||
result = saEvtDispatch(handle, SA_DISPATCH_ONE);
|
||||
@ -304,7 +305,7 @@ event_callback( SaEvtSubscriptionIdT subscription_id,
|
||||
}
|
||||
|
||||
if (event_id == SA_EVT_EVENTID_LOST) {
|
||||
return;
|
||||
goto evt_free;
|
||||
}
|
||||
|
||||
#ifdef TEST_EVENT_ORDER
|
||||
|
Loading…
Reference in New Issue
Block a user