All true, if as you say the assumption is that diesel is all carbon. As with many substances the exact chemical composition varies, but diesel is generally accepted as C 12 H 23. Hydrogen is of course the lightest atom in the known elements. There is considerable debate about tonnage calculations when phase change from liquid to gas is involved.
I wrote a paper where I calculated from all oil produced since 1859 (the beginning of the oil industry) from excellent worldwide production records kept since that time, that the max amount of CO2 created is around 7 parts per million. At the time I presented this, that was for 157 years of oil and gas consumption.
This of course is a far cry from the DISASTEROUS 67 ppm that has been added to the atmosphere by evil mankind (current NASA data says CO2 is now at 417 ppm). In my presentation I suggested that there was no reason nature couldn't readily utilize this "additional" CO2, which spawned the reactionary response that plants could indeed detect the difference between natural and man made CO2 because of various non-extant isotopes and what I affectionately call the Acky Acky Poo Poo response in plant life to fossil fuel CO2. I try not to laugh, but this was the refutation I got from the people who also pointed as proof to ancient, primordial forests which had been encased in glaciers being exposed by man made climate change in recent years. Never mind that it was somewhat warmer when these forests grew, logic cannot get in the way of SCIENCE!!!
Also consider that not all oil is burned, depending on the consumption trends in any given year more than 45% of oil produced is used as a chemical feedstock, most of which releases no CO2 to the atmosphere.