Skip to content

Commit 2aa7187

Browse files
Fix memoryleak in shell door lock commands
1 parent b2a86bd commit 2aa7187

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/lock-app/silabs/src/EventHandlerLibShell.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,7 @@ void EventWorkerFunction(intptr_t context)
209209
break;
210210
}
211211
}
212+
213+
// free the allocated memory from the event handlers
214+
Platform::Delete(data);
212215
}

0 commit comments

Comments
 (0)