projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19fed4e
)
Fix a minor memory leak
author
Wouter Verhelst
<w@uter.be>
Sat, 26 May 2012 07:09:27 +0000
(09:09 +0200)
committer
Wouter Verhelst
<w@uter.be>
Sat, 26 May 2012 07:09:27 +0000
(09:09 +0200)
The 'next' label does some cleanup, so jump there rather than to the
start of the loop.
nbd-server.c
patch
|
blob
|
history
diff --git
a/nbd-server.c
b/nbd-server.c
index a8f4f401a9f536f91b2ee34ca54409bca9b3dedb..4f5e3b6c6fd5e01db1b330998695f8360290614a 100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-803,7
+803,7
@@
GArray* do_cfile_dir(gchar* dir, GError** e) {
case DT_REG:
/* Skip unless the name ends with '.conf' */
if(strcmp((de->d_name + strlen(de->d_name) - 5), ".conf")) {
-
continue
;
+
goto next
;
}
tmp = parse_cfile(fname, FALSE, e);
errno=saved_errno;