found memory leak in code
Bug #812975 reported by
utnubu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Invalid
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I think I found a memory leak in the code ./unity-
At line 270 AtkKeyEventStruct *atk_event = g_new0 (AtkKeyEventStruct, 1); is allocated, but at line 290 the function returns a NULL pointer but does free atk_event first.
Possibly fixed with g_free(atk_event); after line 289 just before the NULL return?
Hope this is a useful report.
Changed in unity (Ubuntu): | |
status: | New → Confirmed |
To post a comment you must log in.
sorry typo:
line 290 the function returns a NULL pointer but does free atk_event first.
should be
line 290 the function returns a NULL pointer but does NOT free atk_event first.
solly!