summaryrefslogtreecommitdiff
path: root/xmlcatalog.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlcatalog.c')
-rw-r--r--xmlcatalog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmlcatalog.c b/xmlcatalog.c
index 0597e88..6f193b1 100644
--- a/xmlcatalog.c
+++ b/xmlcatalog.c
@@ -120,7 +120,10 @@ static void usershell(void) {
command[i++] = *cur++;
}
command[i] = 0;
- if (i == 0) continue;
+ if (i == 0) {
+ free(cmdline);
+ continue;
+ }
nbargs++;
/*