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 | d250c0386af24b00eca2a25b15e3f3830410a8f2 (patch) | |
tree | 9b10d9156b2b5978015c01f022044a2316d6c20e /src | |
parent | 09c394a5917f7f96e91ec7f07542768a562793b3 (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 de0e9225..d01dcac5 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)); |