/[packages]/cauldron/systemd/current/SOURCES/0106-util-return-after-freeing-all-members-of-array.patch
ViewVC logotype

Contents of /cauldron/systemd/current/SOURCES/0106-util-return-after-freeing-all-members-of-array.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669553 - (show annotations) (download)
Sat Aug 30 16:26:21 2014 UTC (9 years, 7 months ago) by colin
File size: 883 byte(s)
New version: 216
1 From 081e009bef5a09c986bfabdf46e96810afaed1c3 Mon Sep 17 00:00:00 2001
2 From: Lukas Nykryn <lnykryn@redhat.com>
3 Date: Wed, 20 Aug 2014 15:02:09 +0200
4 Subject: [PATCH 106/109] util: return after freeing all members of array
5
6 ---
7 src/shared/util.c | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
9
10 diff --git a/src/shared/util.c b/src/shared/util.c
11 index 85a570a..9d254e0 100644
12 --- a/src/shared/util.c
13 +++ b/src/shared/util.c
14 @@ -7113,10 +7113,10 @@ int unquote_many_words(const char **p, ...) {
15 if (r < 0) {
16 int j;
17
18 - for (j = 0; j < c; j++) {
19 + for (j = 0; j < c; j++)
20 free(l[j]);
21 - return r;
22 - }
23 +
24 + return r;
25 }
26
27 if (r == 0)
28 --
29 1.9.2
30

  ViewVC Help
Powered by ViewVC 1.1.30