From d83ecb5d7dd11a16f074a83975be3921ba75063d Mon Sep 17 00:00:00 2001
From: Vit Rosin <vit_r@list.ru>
Date: Tue, 16 Feb 2010 18:03:17 +0000
Subject: [PATCH] possible mem-leaks in src/screen.c
---
src/screen.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/screen.c b/src/screen.c
index 428fe88..3a6764a 100644
a
|
b
|
remove_encoding_from_path (const char *path) |
1026 | 1026 | GIConv converter; |
1027 | 1027 | |
1028 | 1028 | ret = g_string_new(""); |
| 1029 | if (ret == NULL) |
| 1030 | return NULL; |
| 1031 | |
1029 | 1032 | tmp_conv = g_string_new(""); |
| 1033 | if (tmp_conv == NULL) { |
| 1034 | g_string_free (ret,TRUE); |
| 1035 | return NULL; |
| 1036 | } |
1030 | 1037 | |
1031 | 1038 | tmp_path = g_string_new(path); |
| 1039 | if (tmp_path == NULL) { |
| 1040 | g_string_free (ret,TRUE); |
| 1041 | g_string_free (tmp_conv,TRUE); |
| 1042 | return NULL; |
| 1043 | } |
1032 | 1044 | |
1033 | 1045 | while ((tmp = g_strrstr (tmp_path->str, "/#enc:")) != NULL){ |
1034 | 1046 | enc = vfs_get_encoding ((const char *) tmp); |