diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2015-03-08 20:05:21 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2015-03-08 20:05:21 +0100 |
commit | c9b454f00baf3cea7f285cfa71abde1b4be39250 (patch) | |
tree | de5e6e0bbf4f737689ee65b129f9ed20e859adf9 /src | |
parent | bbfa39305b0bcef65270e700fbe27a5e628f9528 (diff) |
fix leak introduced in bbd25bf5
noticed-by: eocene
Diffstat (limited to 'src')
-rw-r--r-- | src/prefsparser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prefsparser.cc b/src/prefsparser.cc index d08dddfc..bf891491 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -87,7 +87,7 @@ static int parseOption(char *name, char *value, for (i = 0; i < dList_length(lp); i++) { void *data = dList_nth_data(lp, i); dList_remove(lp, data); - dFree(dList_nth_data(lp, i)); + dFree(data); } } dList_append(lp, dStrdup(value)); |