Commit b9b2cc1
committed
Fix memory leak in glfs_h_create_from_handle
If the allocation of the glfs_object failed, the reference to
the newly found or linked inode was leaked. We introduce a call to
inode_unref(newinode) guarded by a check, so that the newinode does not
leak in such case.
# api/src/glfs-handleops.c | 2 ++
# 1 file changed, 2 insertions(+)1 parent ae1d696 commit b9b2cc1
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1502 | 1502 | | |
1503 | 1503 | | |
1504 | 1504 | | |
| 1505 | + | |
| 1506 | + | |
1505 | 1507 | | |
1506 | 1508 | | |
1507 | 1509 | | |
| |||
0 commit comments