From 746af5b77739dc7f82eb933121fbcea673d04a45 Mon Sep 17 00:00:00 2001
From: Vit Rosin <vit_r@list.ru>
Date: Thu, 24 Dec 2009 14:50:18 +0000
Subject: [PATCH] possible_missing__g_free__in_vfs-extfs.c
---
vfs/extfs.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/vfs/extfs.c b/vfs/extfs.c
index d30774e..47498c2 100644
a
|
b
|
extfs_readlink (struct vfs_class *me, const char *path, char *buf, size_t size) |
1010 | 1010 | if ((q = extfs_get_path_mangle (me, mpath, &archive, 0)) == NULL) |
1011 | 1011 | goto cleanup; |
1012 | 1012 | entry = extfs_find_entry (archive->root_entry, q, 0, 0); |
| 1013 | g_free (q); |
1013 | 1014 | if (entry == NULL) |
1014 | 1015 | goto cleanup; |
1015 | 1016 | if (!S_ISLNK (entry->inode->mode)) { |
… |
… |
static int extfs_unlink (struct vfs_class *me, const char *file) |
1061 | 1062 | if ((q = extfs_get_path_mangle (me, mpath, &archive, 0)) == NULL) |
1062 | 1063 | goto cleanup; |
1063 | 1064 | entry = extfs_find_entry (archive->root_entry, q, 0, 0); |
| 1065 | g_free (q); |
1064 | 1066 | if (entry == NULL) |
1065 | 1067 | goto cleanup; |
1066 | 1068 | if ((entry = extfs_resolve_symlinks (entry)) == NULL) |
… |
… |
static int extfs_mkdir (struct vfs_class *me, const char *path, mode_t mode) |
1097 | 1099 | goto cleanup; |
1098 | 1100 | } |
1099 | 1101 | entry = extfs_find_entry (archive->root_entry, q, 1, 0); |
| 1102 | g_free (q); |
1100 | 1103 | if (entry == NULL) |
1101 | 1104 | goto cleanup; |
1102 | 1105 | if ((entry = extfs_resolve_symlinks (entry)) == NULL) |
… |
… |
static int extfs_rmdir (struct vfs_class *me, const char *path) |
1127 | 1130 | if ((q = extfs_get_path_mangle (me, mpath, &archive, 0)) == NULL) |
1128 | 1131 | goto cleanup; |
1129 | 1132 | entry = extfs_find_entry (archive->root_entry, q, 0, 0); |
| 1133 | g_free (q); |
1130 | 1134 | if (entry == NULL) |
1131 | 1135 | goto cleanup; |
1132 | 1136 | if ((entry = extfs_resolve_symlinks (entry)) == NULL) |