diff options
| author | Christian Grothoff <christian@grothoff.org> | 2016-04-04 17:40:51 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2016-04-04 17:40:51 +0200 | 
| commit | afb1ab2a116bb0b33b5d23d043222965892e8edf (patch) | |
| tree | 514a8ff9108872b1d01dc5e28dc5727ca4c6b63d /src/exchangedb | |
| parent | 0ff76b5abbf09aa273b7998f4d16bb0c0e4d90bb (diff) | |
-fix mem leaks
Diffstat (limited to 'src/exchangedb')
| -rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index b59acaea..6807e756 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -1480,8 +1480,8 @@ postgres_get_denomination_info (void *cls,      EXITIF (GNUNET_OK !=              GNUNET_PQ_extract_result (result, -                                     rs, -                                     0)); +                                      rs, +                                      0));    }    PQclear (result);    return GNUNET_OK; @@ -1954,7 +1954,7 @@ postgres_get_reserve_history (void *cls,                                       &bt->wire),            GNUNET_PQ_result_spec_end          }; -        if (GNUNET_YES != +        if (GNUNET_OK !=              GNUNET_PQ_extract_result (result, rs, --rows))          {            GNUNET_break (0); @@ -2019,7 +2019,7 @@ postgres_get_reserve_history (void *cls,                                         &cbc->withdraw_fee),            GNUNET_PQ_result_spec_end          }; -        if (GNUNET_YES != +        if (GNUNET_OK !=              GNUNET_PQ_extract_result (result, rs, --rows))          {            GNUNET_break (0); @@ -2285,6 +2285,7 @@ postgres_get_ready_deposit (void *cls,                                   &wire),        GNUNET_PQ_result_spec_end      }; +      if (GNUNET_OK !=          GNUNET_PQ_extract_result (result, rs, 0))      { | 
