1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Decrement json references in api.c to not leak memory.

The json_val in api.c is a borrowed reference, not a new one so don't decref it.
This commit is contained in:
Con Kolivas 2013-11-19 22:21:18 +11:00 committed by Noel Maersk
parent c8b97fbd8a
commit ebeb710375

1
api.c
View File

@ -3876,6 +3876,7 @@ void api(int api_thr_id)
}
}
}
json_decref(json_config);
}
}