infoforcefeed / OlegDB

Enough works to use this in production
http://olegdb.org
MIT License
132 stars 14 forks source link

Make sure key is freed in olt_jar in case of error #171

Closed qpfiffer closed 8 years ago

qpfiffer commented 9 years ago

This is only a problem since #170, but we now also have to free bucket->key in situations like this:

if (strncpy(new_bucket->key, _key, _klen) != new_bucket->key) {
    free(new_bucket);
    return 2;
}